archiva-modules/archiva-base/archiva-common/src/main/java/org/apache/archiva/common/utils/IOStatus.java
/**
     * Add the status for a specific file to this status collection.
     *
     * @param status the status for a given file
     * @return the status object itself
     */
Add the status for a specific file to this status collection.
@param status the status for a given file
@return the status object itself
Add the status for a specific file to this status collection . @param status the status for a given file @return the status object itself
public IOStatus addStatus(FileStatus status) {
        if (status.getResult()== StatusResult.ERROR) {
            addError( status.getPath( ), status.getException( ) );
        } else {
            addSuccess( status.getPath( ), status.getResult( ) );
        }
        return this;
    }
public IOStatus addStatus ( FileStatus status ) { if ( status . getResult ( ) == StatusResult . ERROR ) { addError ( status . getPath ( ) , status . getException ( ) ) ; } else { addSuccess ( status . getPath ( ) , status . getResult ( ) ) ; } return this ; }
Add the status for a specific file to this status collection.
Add the status for a specific file to this status collection .