Buggy code:
private void processArgs ( String [ ] args ) { String searchForThis = null ; PrintStream logTo = null ; for ( int i = 0 ; i < ( args . length ) ; i ++ ) { String arg = args [ i ] ; if ( ( arg . equals ( "-help" ) ) || ( arg . equals ( "-h" ) ) ) { Main . printUsage ( ) ; return ; } else if ( arg . equals ( "-version" ) ) { Main . printVersion ( ) ; return ; } else if ( arg . equals ( "-diagnostics" ) ) { Diagnostics . doReport ( System . out ) ; return ; } else if ( ( arg . equals ( "-quiet" ) ) || ( arg . equals ( "-q" ) ) ) { msgOutputLevel = Project . MSG_WARN ; } else if ( ( arg . equals ( "-verbose" ) ) || ( arg . equals ( "-v" ) ) ) { Main . printVersion ( ) ; msgOutputLevel = Project . MSG_VERBOSE ; } else if ( ( arg . equals ( "-debug" ) ) || ( arg . equals ( "-d" ) ) ) { Main . printVersion ( ) ; msgOutputLevel = Project . MSG_DEBUG ; } else if ( arg . equals ( "-noinput" ) ) { allowInput = false ; } else if ( ( arg . equals ( "-logfile" ) ) || ( arg . equals ( "-l" ) ) ) { try { File logFile = new File ( args [ ( i + 1 ) ] ) ; i ++ ; logTo = new PrintStream ( new FileOutputStream ( logFile ) ) ; Main . isLogFileUsed = true ; } catch ( IOException ioe ) { String msg = "Cannot<seq2seq4repair_space>write<seq2seq4repair_space>on<seq2seq4repair_space>the<seq2seq4repair_space>specified<seq2seq4repair_space>log<seq2seq4repair_space>file.<seq2seq4repair_space>" + ( "Make<seq2seq4repair_space>sure<seq2seq4repair_space>the<seq2seq4repair_space>path<seq2seq4repair_space>exists<seq2seq4repair_space>and<seq2seq4repair_space>you<seq2seq4repair_space>have<seq2seq4repair_space>write<seq2seq4repair_space>" + "permissions." ) ; throw new BuildException ( msg ) ; } catch ( ArrayIndexOutOfBoundsException aioobe ) { String msg = "You<seq2seq4repair_space>must<seq2seq4repair_space>specify<seq2seq4repair_space>a<seq2seq4repair_space>log<seq2seq4repair_space>file<seq2seq4repair_space>when<seq2seq4repair_space>" + "using<seq2seq4repair_space>the<seq2seq4repair_space>-log<seq2seq4repair_space>argument" ; throw new BuildException ( msg ) ; } } else if ( ( ( arg . equals ( "-buildfile" ) ) || ( arg . equals ( "-file" ) ) ) || ( arg . equals ( "-f" ) ) ) { i = handleArgBuildFile ( args , i ) ; } else if ( arg . equals ( "-listener" ) ) { i = handleArgListener ( args , i ) ; } else if ( arg . startsWith ( "-D" ) ) { i = handleArgDefine ( args , i ) ; } else if ( arg . equals ( "-logger" ) ) { i = handleArgLogger ( args , i ) ; } else if ( arg . equals ( "-inputhandler" ) ) { i = handleArgInputHandler ( args , i ) ; } else if ( ( arg . equals ( "-emacs" ) ) || ( arg . equals ( "-e" ) ) ) { emacsMode = true ; } else if ( ( arg . equals ( "-projecthelp" ) ) || ( arg . equals ( "-p" ) ) ) { projectHelp = true ; } else if ( ( arg . equals ( "-find" ) ) || ( arg . equals ( "-s" ) ) ) { if ( i < ( ( args . length ) - 1 ) ) { searchForThis = args [ ( ++ i ) ] ; } else { searchForThis = Main . DEFAULT_BUILD_FILENAME ; } } else if ( arg . startsWith ( "-propertyfile" ) ) { i = handleArgPropertyFile ( args , i ) ; } else if ( ( arg . equals ( "-k" ) ) || ( arg . equals ( "-keep-going" ) ) ) { keepGoingMode = true ; } else if ( arg . equals ( "-nice" ) ) { i = handleArgNice ( args , i ) ; } else if ( Main . LAUNCH_COMMANDS . contains ( arg ) ) { String msg = ( ( ( ( "Ant's<seq2seq4repair_space>Main<seq2seq4repair_space>method<seq2seq4repair_space>is<seq2seq4repair_space>being<seq2seq4repair_space>handed<seq2seq4repair_space>" + "an<seq2seq4repair_space>option<seq2seq4repair_space>" ) + arg ) + "<seq2seq4repair_space>that<seq2seq4repair_space>is<seq2seq4repair_space>only<seq2seq4repair_space>for<seq2seq4repair_space>the<seq2seq4repair_space>launcher<seq2seq4repair_space>class." ) + "\nThis<seq2seq4repair_space>can<seq2seq4repair_space>be<seq2seq4repair_space>caused<seq2seq4repair_space>by<seq2seq4repair_space>a<seq2seq4repair_space>version<seq2seq4repair_space>mismatch<seq2seq4repair_space>between<seq2seq4repair_space>" ) + "the<seq2seq4repair_space>ant<seq2seq4repair_space>script//.bat<seq2seq4repair_space>file<seq2seq4repair_space>and<seq2seq4repair_space>Ant<seq2seq4repair_space>itself." ; throw new BuildException ( msg ) ; } else if ( arg . equals ( "-autoproxy" ) ) { <START_BUG> proxy = false ; <END_BUG> } else if ( arg . startsWith ( "-" ) ) { String msg = "Unknown<seq2seq4repair_space>argument:<seq2seq4repair_space>" + arg ; System . err . println ( msg ) ; Main . printUsage ( ) ; throw new BuildException ( "" ) ; } else { targets . addElement ( arg ) ; } } if ( ( buildFile ) == null ) { if ( searchForThis != null ) { buildFile = findBuildFile ( System . getProperty ( "user.dir" ) , searchForThis ) ; } else { buildFile = new File ( Main . DEFAULT_BUILD_FILENAME ) ; } } if ( ! ( buildFile . exists ( ) ) ) { System . out . println ( ( ( "Buildfile:<seq2seq4repair_space>" + ( buildFile ) ) + "<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>exist!" ) ) ; throw new BuildException ( "Build<seq2seq4repair_space>failed" ) ; } if ( buildFile . isDirectory ( ) ) { System . out . println ( ( ( "What?<seq2seq4repair_space>Buildfile:<seq2seq4repair_space>" + ( buildFile ) ) + "<seq2seq4repair_space>is<seq2seq4repair_space>a<seq2seq4repair_space>dir!" ) ) ; throw new BuildException ( "Build<seq2seq4repair_space>failed" ) ; } loadPropertyFiles ( ) ; if ( ( msgOutputLevel ) >= ( Project . MSG_INFO ) ) { System . out . println ( ( "Buildfile:<seq2seq4repair_space>" + ( buildFile ) ) ) ; } if ( logTo != null ) { Main . out = logTo ; Main . err = logTo ; System . setOut ( Main . out ) ; System . setErr ( Main . err ) ; } readyToRun = true ; } private int handleArgBuildFile ( String [ ] args , int pos ) { } private int handleArgListener ( String [ ] args , int pos ) { }

Fix:
proxy = true ;