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 String revision ; private boolean ignorerc ; private boolean updateOnly ; private String filenameFormat ; private String lineStart ; private String userId ; private String config ; private static final String PCLI_EXE = "pcli" ; private static final String GET_EXE = "get" ; protected int runCmd ( Commandline cmd , ExecuteStreamHandler out ) { } private String getExecutable ( String exe ) { } public void execute ( ) throws BuildException { 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" ) ) ; 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 ( ) ; } <START_BUG> if ( ( result != 0 ) && ( ! ( ignorerc ) ) ) { <END_BUG> 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 ) { commandLine . createArgument ( ) . setValue ( ( "-r" + ( getLabel ( ) ) ) ) ; } 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 ) ) ;

Fix:
if ( ( Execute . isFailure ( result ) ) && ( ! ( ignorerc ) ) ) {