Buggy code:
; protected static final String [ ] ACTION_TARGET_STRS = new String [ ] { "files" , "files" , "files" , "files" , "directory" , "files" , "directories" } ; protected class FTPDirectoryScanner extends DirectoryScanner { protected FTPClient ftp = null ; public FTPDirectoryScanner ( FTPClient ftp ) { } public void scan ( ) { } protected void scandir ( String dir , String vpath , boolean fast ) { } } public void setRemotedir ( String dir ) { } public void setServer ( String server ) { } public void setPort ( int port ) { } public void setUserid ( String userid ) { } public void setPassword ( String password ) { } public void setBinary ( boolean binary ) { } public void setPassive ( boolean passive ) { } public void setVerbose ( boolean verbose ) { } public void setNewer ( boolean newer ) { } public void setPreserveLastModified ( boolean preserveLastModified ) { } public void setDepends ( boolean depends ) { } public void setSeparator ( String separator ) { } public void setChmod ( String theMode ) { } public void setUmask ( String theUmask ) { } public void addFileset ( FileSet set ) { } public void setAction ( String action ) throws BuildException { } public void setAction ( FTP . Action action ) throws BuildException { } public void setListing ( File listing ) { } public void setSkipFailedTransfers ( boolean skipFailedTransfers ) { } public void setIgnoreNoncriticalErrors ( boolean ignoreNoncriticalErrors ) { } protected void checkConfiguration ( ) throws BuildException { } protected int transferFiles ( FTPClient ftp , FileSet fs ) throws IOException , BuildException { FileScanner ds ; if ( ( action ) == ( FTP . SEND_FILES ) ) { ds = fs . getDirectoryScanner ( getProject ( ) ) ; } else { ds = new FTP . FTPDirectoryScanner ( ftp ) ; fs . setupDirectoryScanner ( ds , getProject ( ) ) ; ds . scan ( ) ; } String [ ] dsfiles = null ; if ( ( action ) == ( FTP . RM_DIR ) ) { dsfiles = ds . getIncludedDirectories ( ) ; } else { dsfiles = ds . getIncludedFiles ( ) ; } String dir = null ; if ( ( ( ds . getBasedir ( ) ) == null ) && ( ( ( action ) == ( FTP . SEND_FILES ) ) || ( ( action ) == ( FTP . GET_FILES ) ) ) ) { throw new BuildException ( ( "the<seq2seq4repair_space>dir<seq2seq4repair_space>attribute<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>set<seq2seq4repair_space>for<seq2seq4repair_space>send<seq2seq4repair_space>" + "and<seq2seq4repair_space>get<seq2seq4repair_space>actions" ) ) ; } else { if ( ( ( action ) == ( FTP . SEND_FILES ) ) || ( ( action ) == ( FTP . GET_FILES ) ) ) { dir = ds . getBasedir ( ) . getAbsolutePath ( ) ; } } BufferedWriter bw = null ; try { if ( ( action ) == ( FTP . LIST_FILES ) ) { File pd = fileUtils . getParentFile ( listing ) ; if ( ! ( pd . exists ( ) ) ) { pd . mkdirs ( ) ; } bw = new BufferedWriter ( new FileWriter ( listing ) ) ; } for ( int i = 0 ; i < ( dsfiles . length ) ; i ++ ) { switch ( action ) { case FTP . SEND_FILES : sendFile ( ftp , dir , dsfiles [ i ] ) ; break ; case FTP . GET_FILES : getFile ( ftp , dir , dsfiles [ i ] ) ; break ; case FTP . DEL_FILES : delFile ( ftp , dsfiles [ i ] ) ; break ; case FTP . LIST_FILES : listFile ( ftp , bw , dsfiles [ i ] ) ; break ; case FTP . CHMOD : <START_BUG> doSiteCommand ( ftp , ( ( ( "chmod<seq2seq4repair_space>" + ( chmod ) ) + "<seq2seq4repair_space>" ) + ( dsfiles [ i ] ) ) ) ; <END_BUG> ( transferred ) ++ ; break ; case FTP . RM_DIR : rmDir ( ftp , dsfiles [ i ] ) ; break ; default : throw new BuildException ( ( "unknown<seq2seq4repair_space>ftp<seq2seq4repair_space>action<seq2seq4repair_space>" + ( action ) ) ) ; } } } finally { if ( bw != null ) { bw . close ( ) ; } } return dsfiles . length ; } protected void transferFiles ( FTPClient ftp ) throws IOException , BuildException { } protected String resolveFile ( String file ) { } protected void createParents ( FTPClient ftp , String filename ) throws IOException , BuildException { } protected boolean isUpToDate ( FTPClient ftp , File localFile , String remoteFile ) throws IOException , BuildException { } protected void doSiteCommand ( FTPClient ftp , String theCMD ) throws IOException , BuildException { } protected void sendFile ( FTPClient ftp , String dir , String filename ) throws IOException , BuildException { } protected void delFile ( FTPClient ftp , String filename ) throws IOException , BuildException { } protected void rmDir ( FTPClient ftp , String dirname ) throws IOException , BuildException { } protected void getFile ( FTPClient ftp , String dir , String filename ) throws IOException , BuildException { } protected void listFile ( FTPClient ftp , BufferedWriter bw , String filename ) throws IOException , BuildException { } protected void makeRemoteDir ( FTPClient ftp , String dir ) throws IOException , BuildException { } private void handleMkDirFailure ( FTPClient ftp ) throws BuildException { } public void execute ( ) throws BuildException { } public static class Action extends EnumeratedAttribute { private static final String [ ] VALID_ACTIONS = new String [ ] { "send" , "put" , "recv" , "get" , "del" , "delete" , "list" , "mkdir" , "chmod" , "rmdir" } ; public String [ ] getValues ( ) { } public int getAction ( ) { } } }

Fix:
doSiteCommand ( ftp , ( ( ( "chmod<seq2seq4repair_space>" + ( chmod ) ) + "<seq2seq4repair_space>" ) + ( resolveFile ( dsfiles [ i ] ) ) ) ) ;