Buggy code:
public class Pvcs extends org . apache . tools . ant . Task { private String pvcsbin ; private String repository ; private String pvcsProject ; private Vector pvcsProjects ; private String workspace ; private String force ; private String promotiongroup ; private String label ; private boolean ignorerc ; private boolean updateOnly ; private String filenameFormat ; private String lineStart ; private String userId ; private static final String PCLI_EXE = "pcli" ; private static final String PCLI_LVF_ARGS = "lvf<seq2seq4repair_space>-z<seq2seq4repair_space>-aw" ; private static final String GET_EXE = "get" ; protected int runCmd ( Commandline cmd , ExecuteStreamHandler out ) { } private String getExecutable ( String exe ) { } public void execute ( ) throws BuildException { Project aProj = getProject ( ) ; int result = 0 ; if ( ( ( repository ) == null ) || ( repository . trim ( ) . equals ( "" ) ) ) { throw new BuildException ( "Required<seq2seq4repair_space>argument<seq2seq4repair_space>repository<seq2seq4repair_space>not<seq2seq4repair_space>specified" ) ; } Commandline commandLine = new Commandline ( ) ; commandLine . setExecutable ( getExecutable ( Pvcs . PCLI_EXE ) ) ; 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" ) ) ; tmp2 = new File ( ( ( "pvcs_ant_" + ( rand . nextLong ( ) ) ) + ".log" ) ) ; <START_BUG> log ( ( "Executing<seq2seq4repair_space>" + ( commandLine . toString ( ) ) ) , MSG_VERBOSE ) ; <END_BUG> result = runCmd ( commandLine , new PumpStreamHandler ( new FileOutputStream ( tmp ) , new org . apache . tools . ant . taskdefs . LogOutputStream ( this , Project . MSG_WARN ) ) ) ; if ( ( result != 0 ) && ( ! ( ignorerc ) ) ) { String msg = "Failed<seq2seq4repair_space>executing:<seq2seq4repair_space>" + ( commandLine . toString ( ) ) ; throw new BuildException ( msg , location ) ; } 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 ( ( ( 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 ) { commandLine . createArgument ( ) . setValue ( ( "-r" + ( getLabel ( ) ) ) ) ; } } 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 , location ) ; } } catch ( FileNotFoundException e ) { String msg = ( ( "Failed<seq2seq4repair_space>executing:<seq2seq4repair_space>" + ( commandLine . toString ( ) ) ) + ".<seq2seq4repair_space>Exception:<seq2seq4repair_space>" ) + ( e . getMessage ( ) ) ; throw new BuildException ( msg , location ) ; }

Fix:
log ( commandLine . describeCommand ( ) , MSG_VERBOSE ) ;