core/src/main/java/org/apache/brooklyn/util/core/task/ssh/SshPutTaskWrapper.java [134:169]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                        throw exception;
                    }
                }
                // not successful, but allowed
                return null;
            }
            
            // TODO verify

            successful = (exception==null && ((Integer)0).equals(exitCodeOfCopy));
            return null;
        }
    }
    
    @Override
    public String toString() {
        return super.toString()+"["+task+"]";
    }

    /** blocks, throwing if there was an exception */
    public Void get() {
        return getTask().getUnchecked();
    }
    
    /** returns the exit code from the copy, 0 on success; 
     * null if it has not completed or threw exception
     * (not sure if this is ever a non-zero integer or if it is meaningful)
     * <p>
     * most callers will want the simpler {@link #isSuccessful()} */
    public Integer getExitCode() {
        return exitCodeOfCopy;
    }
    
    /** returns any exception encountered in the operation */
    public Exception getException() {
        return exception;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



software/winrm/src/main/java/org/apache/brooklyn/location/winrm/WinRmPutTaskWrapper.java [129:164]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                        throw exception;
                    }
                }
                // not successful, but allowed
                return null;
            }

            // TODO verify

            successful = (exception==null && ((Integer)0).equals(exitCodeOfCopy));
            return null;
        }
    }

    @Override
    public String toString() {
        return super.toString()+"["+task+"]";
    }

    /** blocks, throwing if there was an exception */
    public Void get() {
        return getTask().getUnchecked();
    }

    /** returns the exit code from the copy, 0 on success;
     * null if it has not completed or threw exception
     * (not sure if this is ever a non-zero integer or if it is meaningful)
     * <p>
     * most callers will want the simpler {@link #isSuccessful()} */
    public Integer getExitCode() {
        return exitCodeOfCopy;
    }

    /** returns any exception encountered in the operation */
    public Exception getException() {
        return exception;
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



