private void execExtractor() throws Exception { ExecShell shell = new ExecShell(); File f = new File(Config.getProperty(Config.EXE_ILINK_SEARCH)); if (!f.exists()) throw new Exception( "executable file does not exist! " + Config.getProperty(Config.EXE_ILINK_SEARCH)); shell.setExecutable(f.getAbsolutePath()); shell.setWorkingDirectory(f.getParent()); shell.addCommandLineArgument(criteria); shell.addCommandLineArgument(String.valueOf(maxCount)); shell.addCommandLineArgument(releaseLevel); shell.addCommandLineArgument(metadataSpec); shell.addCommandLineArgument(username); shell.addCommandLineArgument(password); shell.addCommandLineArgument(outputFile); shell.addCommandLineArgument(proiTkEnv); shell.execute(); exitCode = shell.waitFor(); }