Buggy code:
commandLine . createArgument ( ) . setValue ( "lvf" ) ; commandLine . createArgument ( ) . setValue ( "-z" ) ; commandLine . createArgument ( ) . setValue ( "-aw" ) ; if ( ( getWorkspace ( ) ) != null ) { commandLine . createArgument ( ) . setValue ( ( "-sp" + ( getWorkspace ( ) ) ) ) ; } commandLine . createArgument ( ) . setValue ( ( "-pr" + ( getRepository ( ) ) ) ) ; String uid = getUserId ( ) ; if ( uid != null ) { commandLine . createArgument ( ) . setValue ( ( "-id" + uid ) ) ; } if ( ( ( getPvcsproject ( ) ) == null ) && ( getPvcsprojects ( ) . isEmpty ( ) ) ) { pvcsProject = "//" ; } if ( ( getPvcsproject ( ) ) != null ) { commandLine . createArgument ( ) . setValue ( getPvcsproject ( ) ) ; } if ( ! ( getPvcsprojects ( ) . isEmpty ( ) ) ) { Enumeration e = getPvcsprojects ( ) . elements ( ) ; while ( e . hasMoreElements ( ) ) { String projectName = ( ( PvcsProject ) ( e . nextElement ( ) ) ) . getName ( ) ; if ( ( projectName == null ) || ( projectName . trim ( ) . equals ( "" ) ) ) { throw new BuildException ( ( "name<seq2seq4repair_space>is<seq2seq4repair_space>a<seq2seq4repair_space>required<seq2seq4repair_space>attribute<seq2seq4repair_space>" + "of<seq2seq4repair_space>pvcsproject" ) ) ; } commandLine . createArgument ( ) . setValue ( projectName ) ; } } File tmp = null ; File tmp2 = null ; try { Random rand = new Random ( System . currentTimeMillis ( ) ) ; tmp = new File ( ( ( "pvcs_ant_" + ( rand . nextLong ( ) ) ) + ".log" ) ) ; FileOutputStream fos = new FileOutputStream ( tmp ) ; tmp2 = new File ( ( ( "pvcs_ant_" + ( rand . nextLong ( ) ) ) + ".log" ) ) ; log ( commandLine . describeCommand ( ) , MSG_VERBOSE ) ; try { result = runCmd ( commandLine , new PumpStreamHandler ( fos , new org . apache . tools . ant . taskdefs . LogOutputStream ( this , Project . MSG_WARN ) ) ) ; } finally { fos . close ( ) ; } if ( ( Execute . isFailure ( result ) ) && ( ! ( ignorerc ) ) ) { String msg = "Failed<seq2seq4repair_space>executing:<seq2seq4repair_space>" + ( commandLine . toString ( ) ) ; throw new BuildException ( msg , getLocation ( ) ) ; } if ( ! ( tmp . exists ( ) ) ) { throw new BuildException ( ( "Communication<seq2seq4repair_space>between<seq2seq4repair_space>ant<seq2seq4repair_space>and<seq2seq4repair_space>pvcs<seq2seq4repair_space>" + ( "failed.<seq2seq4repair_space>No<seq2seq4repair_space>output<seq2seq4repair_space>generated<seq2seq4repair_space>from<seq2seq4repair_space>executing<seq2seq4repair_space>PVCS<seq2seq4repair_space>" + "commandline<seq2seq4repair_space>interface<seq2seq4repair_space>\"pcli\"<seq2seq4repair_space>and<seq2seq4repair_space>\"get\"" ) ) ) ; } log ( "Creating<seq2seq4repair_space>folders" , MSG_INFO ) ; createFolders ( tmp ) ; massagePCLI ( tmp , tmp2 ) ; commandLine . clearArgs ( ) ; commandLine . setExecutable ( getExecutable ( Pvcs . GET_EXE ) ) ; if ( ( ( getConfig ( ) ) != null ) && ( ( getConfig ( ) . length ( ) ) > 0 ) ) { commandLine . createArgument ( ) . setValue ( ( "-c" + ( getConfig ( ) ) ) ) ; } if ( ( ( getForce ( ) ) != null ) && ( getForce ( ) . equals ( "yes" ) ) ) { commandLine . createArgument ( ) . setValue ( "-Y" ) ; } else { commandLine . createArgument ( ) . setValue ( "-N" ) ; } if ( ( getPromotiongroup ( ) ) != null ) { commandLine . createArgument ( ) . setValue ( ( "-G" + ( getPromotiongroup ( ) ) ) ) ; } else { if ( ( getLabel ( ) ) != null ) { <START_BUG> commandLine . createArgument ( ) . setValue ( ( "-r" + ( getLabel ( ) ) ) ) ; <END_BUG> } else { if ( ( getRevision ( ) ) != null ) { commandLine . createArgument ( ) . setValue ( ( "-r" + ( getRevision ( ) ) ) ) ; } } } if ( updateOnly ) { commandLine . createArgument ( ) . setValue ( "-U" ) ; } commandLine . createArgument ( ) . setValue ( ( "@" + ( tmp2 . getAbsolutePath ( ) ) ) ) ; log ( "Getting<seq2seq4repair_space>files" , MSG_INFO ) ; log ( ( "Executing<seq2seq4repair_space>" + ( commandLine . toString ( ) ) ) , MSG_VERBOSE ) ; result = runCmd ( commandLine , new org . apache . tools . ant . taskdefs . LogStreamHandler ( this , Project . MSG_INFO , Project . MSG_WARN ) ) ; if ( ( result != 0 ) && ( ! ( ignorerc ) ) ) { String msg = ( ( "Failed<seq2seq4repair_space>executing:<seq2seq4repair_space>" + ( commandLine . toString ( ) ) ) + ".<seq2seq4repair_space>Return<seq2seq4repair_space>code<seq2seq4repair_space>was<seq2seq4repair_space>" ) + result ; throw new BuildException ( msg , getLocation ( ) ) ; } } catch ( FileNotFoundException e ) { String msg = ( ( "Failed<seq2seq4repair_space>executing:<seq2seq4repair_space>" + ( commandLine . toString ( ) ) ) + ".<seq2seq4repair_space>Exception:<seq2seq4repair_space>" ) + ( e . getMessage ( ) ) ; throw new BuildException ( msg , getLocation ( ) ) ; } catch ( IOException e ) { String msg = ( ( "Failed<seq2seq4repair_space>executing:<seq2seq4repair_space>" + ( commandLine . toString ( ) ) ) + ".<seq2seq4repair_space>Exception:<seq2seq4repair_space>" ) + ( e . getMessage ( ) ) ; throw new BuildException ( msg , getLocation ( ) ) ; } catch ( ParseException e ) { String msg = ( ( "Failed<seq2seq4repair_space>executing:<seq2seq4repair_space>" + ( commandLine . toString ( ) ) ) + ".<seq2seq4repair_space>Exception:<seq2seq4repair_space>" ) + ( e . getMessage ( ) ) ; throw new BuildException ( msg , getLocation ( ) ) ; }

Fix:
commandLine . createArgument ( ) . setValue ( ( "-v" + ( getLabel ( ) ) ) ) ;