pbs-middleware-client/src/main/java/cz/muni/ll/middleware/client/jobs/domain/submitRequest/SubmitJobBuilder.java
/**
     * Server directory in which job will be submitted. Optional.
     *
     * @param       workdir  job working directory
     * @return      a reference to this object.
     * @exception   IllegalArgumentException in case {@code workdir} is {@code null}
     * @exception   IllegalArgumentException in case {@code workdir} is blank string
     */
Server directory in which job will be submitted. Optional.
@param       workdir  job working directory
@return      a reference to this object.
@exception   IllegalArgumentException in case  workdir is  null
@exception   IllegalArgumentException in case  workdir is blank string
Server directory in which job will be submitted . Optional . @param workdir job working directory @return a reference to this object . @exception IllegalArgumentException in case workdir is null @exception IllegalArgumentException in case workdir is blank string
public SubmitJobBuilder workingDirectory(String workdir) {
        if (workdir == null) {
            throw new IllegalArgumentException("workdir can not be null");
        }
        if (workdir.replace(" ", "").isEmpty()) {
            throw new IllegalArgumentException("workdir can not be empty string");
        }
        this.workdir = workdir;
        return this;
    }
public SubmitJobBuilder workingDirectory ( String workdir ) { if ( workdir == null ) { throw new IllegalArgumentException ( "workdir can not be null" ) ; } if ( workdir . replace ( " " , "" ) . isEmpty ( ) ) { throw new IllegalArgumentException ( "workdir can not be empty string" ) ; } this . workdir = workdir ; return this ; }
Server directory in which job will be submitted.
Server directory in which job will be submitted .