bugged
stringlengths 6
599k
| fixed
stringlengths 6
40.8M
| __index_level_0__
int64 0
3.24M
|
---|---|---|
public CompileResult perform (String compiler, ArrayList arguments) { Debug.trace ("starting job " + this.name); // we have some maximum command line length - need to count int cmdline_len = 0; // used to collect the arguments for executing the compiler LinkedList args = new LinkedList(arguments); { Iterator arg_it = args.iterator(); while (arg_it.hasNext ()) cmdline_len += ((String)arg_it.next()).length()+1; } // add compiler in front of arguments args.add (0, compiler); cmdline_len += compiler.length()+1; // construct classpath argument for compiler // - collect all classpaths StringBuffer classpath_sb = new StringBuffer(); Iterator cp_it = this.classpath.iterator(); while (cp_it.hasNext ()) { String cp = (String)cp_it.next(); if (classpath_sb.length() > 0) classpath_sb.append (File.pathSeparatorChar); classpath_sb.append (new File (cp).getAbsolutePath()); } String classpath_str = classpath_sb.toString (); // - add classpath argument to command line if (classpath_str.length() > 0) { args.add ("-classpath"); cmdline_len = cmdline_len + 11; args.add (classpath_str); cmdline_len += classpath_str.length()+1; } // remember how many arguments we have which don't change for the job int common_args_no = args.size(); // remember how long the common command line is int common_args_len = cmdline_len; // used for execution FileExecutor executor = new FileExecutor (); String output[] = new String[2]; // used for displaying the progress bar String jobfiles = ""; int fileno = 0; int last_fileno = 0; // now iterate over all files of this job Iterator file_it = this.files.iterator(); while (file_it.hasNext()) { File f = (File)file_it.next(); String fpath = f.getAbsolutePath(); Debug.trace ("processing "+fpath); // we add the file _first_ to the arguments to have a better // chance to get something done if the command line is almost // MAX_CMDLINE_SIZE or even above fileno++; jobfiles += f.getName() + " "; args.add (fpath); cmdline_len += fpath.length(); // start compilation if maximum command line length reached if (cmdline_len >= MAX_CMDLINE_SIZE) { Debug.trace ("compiling " + jobfiles); // display useful progress bar (avoid showing 100% while still // compiling a lot) this.listener.progress (last_fileno, jobfiles); last_fileno = fileno; String[] full_cmdline = (String[])args.toArray (output); int retval = executor.executeCommand (full_cmdline, output); // update progress bar: compilation of fileno files done this.listener.progress (fileno, jobfiles); if (retval != 0) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error"), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; } else { // verify that all files have been compiled successfully // I found that sometimes, no error code is returned although // compilation failed. Iterator arg_it = args.listIterator (common_args_no); while (arg_it.hasNext()) { File java_file = new File ((String)arg_it.next()); String basename = java_file.getName(); int dotpos = basename.lastIndexOf ('.'); basename = basename.substring (0, dotpos) + ".class"; File class_file = new File (java_file.getParentFile(), basename); if (! class_file.exists ()) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error.noclassfile")+java_file.getAbsolutePath(), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; // don't continue any further break; } } } // clean command line: remove files we just compiled for (int i = args.size()-1; i >= common_args_no; i--) { args.removeLast (); } cmdline_len = common_args_len; jobfiles = ""; } } if (cmdline_len > common_args_len) { this.listener.progress (last_fileno, jobfiles); String[] full_cmdline = (String[])args.toArray (output); int retval = executor.executeCommand (full_cmdline, output); this.listener.progress (fileno, jobfiles); if (retval != 0) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error"), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; } } Debug.trace ("job "+this.name+" done (" + fileno + " files compiled)"); return new CompileResult(); }
|
public CompileResult perform (String compiler, ArrayList arguments) { Debug.trace ("starting job " + this.name); // we have some maximum command line length - need to count int cmdline_len = 0; // used to collect the arguments for executing the compiler LinkedList args = new LinkedList(arguments); { Iterator arg_it = args.iterator(); while (arg_it.hasNext ()) cmdline_len += ((String)arg_it.next()).length()+1; } // add compiler in front of arguments args.add (0, compiler); cmdline_len += compiler.length()+1; // construct classpath argument for compiler // - collect all classpaths StringBuffer classpath_sb = new StringBuffer(); Iterator cp_it = this.classpath.iterator(); while (cp_it.hasNext ()) { String cp = (String)cp_it.next(); if (classpath_sb.length() > 0) classpath_sb.append (File.pathSeparatorChar); classpath_sb.append (new File (cp).getAbsolutePath()); } String classpath_str = classpath_sb.toString (); // - add classpath argument to command line if (classpath_str.length() > 0) { args.add ("-classpath"); cmdline_len = cmdline_len + 11; args.add (classpath_str); cmdline_len += classpath_str.length()+1; } // remember how many arguments we have which don't change for the job int common_args_no = args.size(); // remember how long the common command line is int common_args_len = cmdline_len; // used for execution FileExecutor executor = new FileExecutor (); String output[] = new String[2]; // used for displaying the progress bar String jobfiles = ""; int fileno = 0; int last_fileno = 0; // now iterate over all files of this job Iterator file_it = this.files.iterator(); while (file_it.hasNext()) { File f = (File)file_it.next(); String fpath = f.getAbsolutePath(); Debug.trace ("processing "+fpath); // we add the file _first_ to the arguments to have a better // chance to get something done if the command line is almost // MAX_CMDLINE_SIZE or even above fileno++; jobfiles += f.getName() + " "; args.add (fpath); cmdline_len += fpath.length(); // start compilation if maximum command line length reached if (cmdline_len >= MAX_CMDLINE_SIZE) { Debug.trace ("compiling " + jobfiles); // display useful progress bar (avoid showing 100% while still // compiling a lot) this.listener.progress (last_fileno, jobfiles); last_fileno = fileno; String[] full_cmdline = (String[])args.toArray (output); int retval = executor.executeCommand(full_cmdline, output); // update progress bar: compilation of fileno files done this.listener.progress (fileno, jobfiles); if (retval != 0) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error"), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; } else { // verify that all files have been compiled successfully // I found that sometimes, no error code is returned although // compilation failed. Iterator arg_it = args.listIterator (common_args_no); while (arg_it.hasNext()) { File java_file = new File ((String)arg_it.next()); String basename = java_file.getName(); int dotpos = basename.lastIndexOf ('.'); basename = basename.substring (0, dotpos) + ".class"; File class_file = new File (java_file.getParentFile(), basename); if (! class_file.exists ()) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error.noclassfile")+java_file.getAbsolutePath(), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; // don't continue any further break; } } } // clean command line: remove files we just compiled for (int i = args.size()-1; i >= common_args_no; i--) { args.removeLast (); } cmdline_len = common_args_len; jobfiles = ""; } } if (cmdline_len > common_args_len) { this.listener.progress (last_fileno, jobfiles); String[] full_cmdline = (String[])args.toArray (output); int retval = executor.executeCommand(full_cmdline, output); this.listener.progress (fileno, jobfiles); if (retval != 0) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error"), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; } } Debug.trace ("job "+this.name+" done (" + fileno + " files compiled)"); return new CompileResult(); }
| 3,241,110 |
public CompileResult perform (String compiler, ArrayList arguments) { Debug.trace ("starting job " + this.name); // we have some maximum command line length - need to count int cmdline_len = 0; // used to collect the arguments for executing the compiler LinkedList args = new LinkedList(arguments); { Iterator arg_it = args.iterator(); while (arg_it.hasNext ()) cmdline_len += ((String)arg_it.next()).length()+1; } // add compiler in front of arguments args.add (0, compiler); cmdline_len += compiler.length()+1; // construct classpath argument for compiler // - collect all classpaths StringBuffer classpath_sb = new StringBuffer(); Iterator cp_it = this.classpath.iterator(); while (cp_it.hasNext ()) { String cp = (String)cp_it.next(); if (classpath_sb.length() > 0) classpath_sb.append (File.pathSeparatorChar); classpath_sb.append (new File (cp).getAbsolutePath()); } String classpath_str = classpath_sb.toString (); // - add classpath argument to command line if (classpath_str.length() > 0) { args.add ("-classpath"); cmdline_len = cmdline_len + 11; args.add (classpath_str); cmdline_len += classpath_str.length()+1; } // remember how many arguments we have which don't change for the job int common_args_no = args.size(); // remember how long the common command line is int common_args_len = cmdline_len; // used for execution FileExecutor executor = new FileExecutor (); String output[] = new String[2]; // used for displaying the progress bar String jobfiles = ""; int fileno = 0; int last_fileno = 0; // now iterate over all files of this job Iterator file_it = this.files.iterator(); while (file_it.hasNext()) { File f = (File)file_it.next(); String fpath = f.getAbsolutePath(); Debug.trace ("processing "+fpath); // we add the file _first_ to the arguments to have a better // chance to get something done if the command line is almost // MAX_CMDLINE_SIZE or even above fileno++; jobfiles += f.getName() + " "; args.add (fpath); cmdline_len += fpath.length(); // start compilation if maximum command line length reached if (cmdline_len >= MAX_CMDLINE_SIZE) { Debug.trace ("compiling " + jobfiles); // display useful progress bar (avoid showing 100% while still // compiling a lot) this.listener.progress (last_fileno, jobfiles); last_fileno = fileno; String[] full_cmdline = (String[])args.toArray (output); int retval = executor.executeCommand (full_cmdline, output); // update progress bar: compilation of fileno files done this.listener.progress (fileno, jobfiles); if (retval != 0) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error"), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; } else { // verify that all files have been compiled successfully // I found that sometimes, no error code is returned although // compilation failed. Iterator arg_it = args.listIterator (common_args_no); while (arg_it.hasNext()) { File java_file = new File ((String)arg_it.next()); String basename = java_file.getName(); int dotpos = basename.lastIndexOf ('.'); basename = basename.substring (0, dotpos) + ".class"; File class_file = new File (java_file.getParentFile(), basename); if (! class_file.exists ()) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error.noclassfile")+java_file.getAbsolutePath(), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; // don't continue any further break; } } } // clean command line: remove files we just compiled for (int i = args.size()-1; i >= common_args_no; i--) { args.removeLast (); } cmdline_len = common_args_len; jobfiles = ""; } } if (cmdline_len > common_args_len) { this.listener.progress (last_fileno, jobfiles); String[] full_cmdline = (String[])args.toArray (output); int retval = executor.executeCommand (full_cmdline, output); this.listener.progress (fileno, jobfiles); if (retval != 0) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error"), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; } } Debug.trace ("job "+this.name+" done (" + fileno + " files compiled)"); return new CompileResult(); }
|
public CompileResult perform (String compiler, ArrayList arguments) { Debug.trace ("starting job " + this.name); // we have some maximum command line length - need to count int cmdline_len = 0; // used to collect the arguments for executing the compiler LinkedList args = new LinkedList(arguments); { Iterator arg_it = args.iterator(); while (arg_it.hasNext ()) cmdline_len += ((String)arg_it.next()).length()+1; } // add compiler in front of arguments args.add (0, compiler); cmdline_len += compiler.length()+1; // construct classpath argument for compiler // - collect all classpaths StringBuffer classpath_sb = new StringBuffer(); Iterator cp_it = this.classpath.iterator(); while (cp_it.hasNext ()) { String cp = (String)cp_it.next(); if (classpath_sb.length() > 0) classpath_sb.append (File.pathSeparatorChar); classpath_sb.append (new File (cp).getAbsolutePath()); } String classpath_str = classpath_sb.toString (); // - add classpath argument to command line if (classpath_str.length() > 0) { args.add ("-classpath"); cmdline_len = cmdline_len + 11; args.add (classpath_str); cmdline_len += classpath_str.length()+1; } // remember how many arguments we have which don't change for the job int common_args_no = args.size(); // remember how long the common command line is int common_args_len = cmdline_len; // used for execution FileExecutor executor = new FileExecutor (); String output[] = new String[2]; // used for displaying the progress bar String jobfiles = ""; int fileno = 0; int last_fileno = 0; // now iterate over all files of this job Iterator file_it = this.files.iterator(); while (file_it.hasNext()) { File f = (File)file_it.next(); String fpath = f.getAbsolutePath(); Debug.trace ("processing "+fpath); // we add the file _first_ to the arguments to have a better // chance to get something done if the command line is almost // MAX_CMDLINE_SIZE or even above fileno++; jobfiles += f.getName() + " "; args.add (fpath); cmdline_len += fpath.length(); // start compilation if maximum command line length reached if (cmdline_len >= MAX_CMDLINE_SIZE) { Debug.trace ("compiling " + jobfiles); // display useful progress bar (avoid showing 100% while still // compiling a lot) this.listener.progress (last_fileno, jobfiles); last_fileno = fileno; String[] full_cmdline = (String[])args.toArray (output); int retval = executor.executeCommand (full_cmdline, output); // update progress bar: compilation of fileno files done this.listener.progress(fileno, jobfiles); if (retval != 0) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error"), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; } else { // verify that all files have been compiled successfully // I found that sometimes, no error code is returned although // compilation failed. Iterator arg_it = args.listIterator (common_args_no); while (arg_it.hasNext()) { File java_file = new File ((String)arg_it.next()); String basename = java_file.getName(); int dotpos = basename.lastIndexOf ('.'); basename = basename.substring (0, dotpos) + ".class"; File class_file = new File (java_file.getParentFile(), basename); if (! class_file.exists ()) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error.noclassfile")+java_file.getAbsolutePath(), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; // don't continue any further break; } } } // clean command line: remove files we just compiled for (int i = args.size()-1; i >= common_args_no; i--) { args.removeLast (); } cmdline_len = common_args_len; jobfiles = ""; } } if (cmdline_len > common_args_len) { this.listener.progress (last_fileno, jobfiles); String[] full_cmdline = (String[])args.toArray (output); int retval = executor.executeCommand (full_cmdline, output); this.listener.progress(fileno, jobfiles); if (retval != 0) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error"), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; } } Debug.trace ("job "+this.name+" done (" + fileno + " files compiled)"); return new CompileResult(); }
| 3,241,111 |
public CompileResult perform (String compiler, ArrayList arguments) { Debug.trace ("starting job " + this.name); // we have some maximum command line length - need to count int cmdline_len = 0; // used to collect the arguments for executing the compiler LinkedList args = new LinkedList(arguments); { Iterator arg_it = args.iterator(); while (arg_it.hasNext ()) cmdline_len += ((String)arg_it.next()).length()+1; } // add compiler in front of arguments args.add (0, compiler); cmdline_len += compiler.length()+1; // construct classpath argument for compiler // - collect all classpaths StringBuffer classpath_sb = new StringBuffer(); Iterator cp_it = this.classpath.iterator(); while (cp_it.hasNext ()) { String cp = (String)cp_it.next(); if (classpath_sb.length() > 0) classpath_sb.append (File.pathSeparatorChar); classpath_sb.append (new File (cp).getAbsolutePath()); } String classpath_str = classpath_sb.toString (); // - add classpath argument to command line if (classpath_str.length() > 0) { args.add ("-classpath"); cmdline_len = cmdline_len + 11; args.add (classpath_str); cmdline_len += classpath_str.length()+1; } // remember how many arguments we have which don't change for the job int common_args_no = args.size(); // remember how long the common command line is int common_args_len = cmdline_len; // used for execution FileExecutor executor = new FileExecutor (); String output[] = new String[2]; // used for displaying the progress bar String jobfiles = ""; int fileno = 0; int last_fileno = 0; // now iterate over all files of this job Iterator file_it = this.files.iterator(); while (file_it.hasNext()) { File f = (File)file_it.next(); String fpath = f.getAbsolutePath(); Debug.trace ("processing "+fpath); // we add the file _first_ to the arguments to have a better // chance to get something done if the command line is almost // MAX_CMDLINE_SIZE or even above fileno++; jobfiles += f.getName() + " "; args.add (fpath); cmdline_len += fpath.length(); // start compilation if maximum command line length reached if (cmdline_len >= MAX_CMDLINE_SIZE) { Debug.trace ("compiling " + jobfiles); // display useful progress bar (avoid showing 100% while still // compiling a lot) this.listener.progress (last_fileno, jobfiles); last_fileno = fileno; String[] full_cmdline = (String[])args.toArray (output); int retval = executor.executeCommand (full_cmdline, output); // update progress bar: compilation of fileno files done this.listener.progress (fileno, jobfiles); if (retval != 0) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error"), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; } else { // verify that all files have been compiled successfully // I found that sometimes, no error code is returned although // compilation failed. Iterator arg_it = args.listIterator (common_args_no); while (arg_it.hasNext()) { File java_file = new File ((String)arg_it.next()); String basename = java_file.getName(); int dotpos = basename.lastIndexOf ('.'); basename = basename.substring (0, dotpos) + ".class"; File class_file = new File (java_file.getParentFile(), basename); if (! class_file.exists ()) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error.noclassfile")+java_file.getAbsolutePath(), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; // don't continue any further break; } } } // clean command line: remove files we just compiled for (int i = args.size()-1; i >= common_args_no; i--) { args.removeLast (); } cmdline_len = common_args_len; jobfiles = ""; } } if (cmdline_len > common_args_len) { this.listener.progress (last_fileno, jobfiles); String[] full_cmdline = (String[])args.toArray (output); int retval = executor.executeCommand (full_cmdline, output); this.listener.progress (fileno, jobfiles); if (retval != 0) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error"), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; } } Debug.trace ("job "+this.name+" done (" + fileno + " files compiled)"); return new CompileResult(); }
|
public CompileResult perform (String compiler, ArrayList arguments) { Debug.trace ("starting job " + this.name); // we have some maximum command line length - need to count int cmdline_len = 0; // used to collect the arguments for executing the compiler LinkedList args = new LinkedList(arguments); { Iterator arg_it = args.iterator(); while (arg_it.hasNext ()) cmdline_len += ((String)arg_it.next()).length()+1; } // add compiler in front of arguments args.add (0, compiler); cmdline_len += compiler.length()+1; // construct classpath argument for compiler // - collect all classpaths StringBuffer classpath_sb = new StringBuffer(); Iterator cp_it = this.classpath.iterator(); while (cp_it.hasNext ()) { String cp = (String)cp_it.next(); if (classpath_sb.length() > 0) classpath_sb.append (File.pathSeparatorChar); classpath_sb.append (new File (cp).getAbsolutePath()); } String classpath_str = classpath_sb.toString (); // - add classpath argument to command line if (classpath_str.length() > 0) { args.add ("-classpath"); cmdline_len = cmdline_len + 11; args.add (classpath_str); cmdline_len += classpath_str.length()+1; } // remember how many arguments we have which don't change for the job int common_args_no = args.size(); // remember how long the common command line is int common_args_len = cmdline_len; // used for execution FileExecutor executor = new FileExecutor (); String output[] = new String[2]; // used for displaying the progress bar String jobfiles = ""; int fileno = 0; int last_fileno = 0; // now iterate over all files of this job Iterator file_it = this.files.iterator(); while (file_it.hasNext()) { File f = (File)file_it.next(); String fpath = f.getAbsolutePath(); Debug.trace ("processing "+fpath); // we add the file _first_ to the arguments to have a better // chance to get something done if the command line is almost // MAX_CMDLINE_SIZE or even above fileno++; jobfiles += f.getName() + " "; args.add (fpath); cmdline_len += fpath.length(); // start compilation if maximum command line length reached if (cmdline_len >= MAX_CMDLINE_SIZE) { Debug.trace ("compiling " + jobfiles); // display useful progress bar (avoid showing 100% while still // compiling a lot) this.listener.progress (last_fileno, jobfiles); last_fileno = fileno; String[] full_cmdline = (String[])args.toArray (output); int retval = executor.executeCommand (full_cmdline, output); // update progress bar: compilation of fileno files done this.listener.progress (fileno, jobfiles); if (retval != 0) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error"), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; } else { // verify that all files have been compiled successfully // I found that sometimes, no error code is returned although // compilation failed. Iterator arg_it = args.listIterator (common_args_no); while (arg_it.hasNext()) { File java_file = new File ((String)arg_it.next()); String basename = java_file.getName(); int dotpos = basename.lastIndexOf ('.'); basename = basename.substring (0, dotpos) + ".class"; File class_file = new File (java_file.getParentFile(), basename); if (! class_file.exists ()) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error.noclassfile")+java_file.getAbsolutePath(), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; // don't continue any further break; } } } // clean command line: remove files we just compiled for (int i = args.size()-1; i >= common_args_no; i--) { args.removeLast (); } cmdline_len = common_args_len; jobfiles = ""; } } if (cmdline_len > common_args_len) { this.listener.progress (last_fileno, jobfiles); String[] full_cmdline = (String[])args.toArray (output); int retval = executor.executeCommand (full_cmdline, output); this.listener.progress (fileno, jobfiles); if (retval != 0) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error"), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; } } Debug.trace ("job "+this.name+" done (" + fileno + " files compiled)"); return new CompileResult(); }
| 3,241,112 |
public CompileResult perform (String compiler, ArrayList arguments) { Debug.trace ("starting job " + this.name); // we have some maximum command line length - need to count int cmdline_len = 0; // used to collect the arguments for executing the compiler LinkedList args = new LinkedList(arguments); { Iterator arg_it = args.iterator(); while (arg_it.hasNext ()) cmdline_len += ((String)arg_it.next()).length()+1; } // add compiler in front of arguments args.add (0, compiler); cmdline_len += compiler.length()+1; // construct classpath argument for compiler // - collect all classpaths StringBuffer classpath_sb = new StringBuffer(); Iterator cp_it = this.classpath.iterator(); while (cp_it.hasNext ()) { String cp = (String)cp_it.next(); if (classpath_sb.length() > 0) classpath_sb.append (File.pathSeparatorChar); classpath_sb.append (new File (cp).getAbsolutePath()); } String classpath_str = classpath_sb.toString (); // - add classpath argument to command line if (classpath_str.length() > 0) { args.add ("-classpath"); cmdline_len = cmdline_len + 11; args.add (classpath_str); cmdline_len += classpath_str.length()+1; } // remember how many arguments we have which don't change for the job int common_args_no = args.size(); // remember how long the common command line is int common_args_len = cmdline_len; // used for execution FileExecutor executor = new FileExecutor (); String output[] = new String[2]; // used for displaying the progress bar String jobfiles = ""; int fileno = 0; int last_fileno = 0; // now iterate over all files of this job Iterator file_it = this.files.iterator(); while (file_it.hasNext()) { File f = (File)file_it.next(); String fpath = f.getAbsolutePath(); Debug.trace ("processing "+fpath); // we add the file _first_ to the arguments to have a better // chance to get something done if the command line is almost // MAX_CMDLINE_SIZE or even above fileno++; jobfiles += f.getName() + " "; args.add (fpath); cmdline_len += fpath.length(); // start compilation if maximum command line length reached if (cmdline_len >= MAX_CMDLINE_SIZE) { Debug.trace ("compiling " + jobfiles); // display useful progress bar (avoid showing 100% while still // compiling a lot) this.listener.progress (last_fileno, jobfiles); last_fileno = fileno; String[] full_cmdline = (String[])args.toArray (output); int retval = executor.executeCommand (full_cmdline, output); // update progress bar: compilation of fileno files done this.listener.progress (fileno, jobfiles); if (retval != 0) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error"), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; } else { // verify that all files have been compiled successfully // I found that sometimes, no error code is returned although // compilation failed. Iterator arg_it = args.listIterator (common_args_no); while (arg_it.hasNext()) { File java_file = new File ((String)arg_it.next()); String basename = java_file.getName(); int dotpos = basename.lastIndexOf ('.'); basename = basename.substring (0, dotpos) + ".class"; File class_file = new File (java_file.getParentFile(), basename); if (! class_file.exists ()) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error.noclassfile")+java_file.getAbsolutePath(), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; // don't continue any further break; } } } // clean command line: remove files we just compiled for (int i = args.size()-1; i >= common_args_no; i--) { args.removeLast (); } cmdline_len = common_args_len; jobfiles = ""; } } if (cmdline_len > common_args_len) { this.listener.progress (last_fileno, jobfiles); String[] full_cmdline = (String[])args.toArray (output); int retval = executor.executeCommand (full_cmdline, output); this.listener.progress (fileno, jobfiles); if (retval != 0) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error"), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; } } Debug.trace ("job "+this.name+" done (" + fileno + " files compiled)"); return new CompileResult(); }
|
public CompileResult perform (String compiler, ArrayList arguments) { Debug.trace ("starting job " + this.name); // we have some maximum command line length - need to count int cmdline_len = 0; // used to collect the arguments for executing the compiler LinkedList args = new LinkedList(arguments); { Iterator arg_it = args.iterator(); while (arg_it.hasNext ()) cmdline_len += ((String)arg_it.next()).length()+1; } // add compiler in front of arguments args.add (0, compiler); cmdline_len += compiler.length()+1; // construct classpath argument for compiler // - collect all classpaths StringBuffer classpath_sb = new StringBuffer(); Iterator cp_it = this.classpath.iterator(); while (cp_it.hasNext ()) { String cp = (String)cp_it.next(); if (classpath_sb.length() > 0) classpath_sb.append (File.pathSeparatorChar); classpath_sb.append (new File (cp).getAbsolutePath()); } String classpath_str = classpath_sb.toString (); // - add classpath argument to command line if (classpath_str.length() > 0) { args.add ("-classpath"); cmdline_len = cmdline_len + 11; args.add (classpath_str); cmdline_len += classpath_str.length()+1; } // remember how many arguments we have which don't change for the job int common_args_no = args.size(); // remember how long the common command line is int common_args_len = cmdline_len; // used for execution FileExecutor executor = new FileExecutor (); String output[] = new String[2]; // used for displaying the progress bar String jobfiles = ""; int fileno = 0; int last_fileno = 0; // now iterate over all files of this job Iterator file_it = this.files.iterator(); while (file_it.hasNext()) { File f = (File)file_it.next(); String fpath = f.getAbsolutePath(); Debug.trace ("processing "+fpath); // we add the file _first_ to the arguments to have a better // chance to get something done if the command line is almost // MAX_CMDLINE_SIZE or even above fileno++; jobfiles += f.getName() + " "; args.add (fpath); cmdline_len += fpath.length(); // start compilation if maximum command line length reached if (cmdline_len >= MAX_CMDLINE_SIZE) { Debug.trace ("compiling " + jobfiles); // display useful progress bar (avoid showing 100% while still // compiling a lot) this.listener.progress (last_fileno, jobfiles); last_fileno = fileno; String[] full_cmdline = (String[])args.toArray (output); int retval = executor.executeCommand (full_cmdline, output); // update progress bar: compilation of fileno files done this.listener.progress (fileno, jobfiles); if (retval != 0) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error"), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; } else { // verify that all files have been compiled successfully // I found that sometimes, no error code is returned although // compilation failed. Iterator arg_it = args.listIterator (common_args_no); while (arg_it.hasNext()) { File java_file = new File ((String)arg_it.next()); String basename = java_file.getName(); int dotpos = basename.lastIndexOf ('.'); basename = basename.substring (0, dotpos) + ".class"; File class_file = new File (java_file.getParentFile(), basename); if (! class_file.exists ()) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error.noclassfile")+java_file.getAbsolutePath(), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; // don't continue any further break; } } } // clean command line: remove files we just compiled for (int i = args.size()-1; i >= common_args_no; i--) { args.removeLast (); } cmdline_len = common_args_len; jobfiles = ""; } } if (cmdline_len > common_args_len) { this.listener.progress (last_fileno, jobfiles); String[] full_cmdline = (String[])args.toArray (output); int retval = executor.executeCommand (full_cmdline, output); this.listener.progress (fileno, jobfiles); if (retval != 0) { CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error"), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue()) return result; } } Debug.trace("job " + this.name + " done (" + fileno + " files compiled)"); return new CompileResult(); }
| 3,241,113 |
public CompileWorker(AutomatedInstallData idata, CompileHandler handler) throws IOException { this.idata = idata; this.handler = handler; this.vs = new VariableSubstitutor(idata.getVariableValueMap()); this.compilationThread = null; if (! readSpec ()) throw new IOException ("Error reading compilation specification"); }
|
public CompileWorker(AutomatedInstallData idata, CompileHandler handler) throws IOException { this.idata = idata; this.handler = handler; this.vs = new VariableSubstitutor(idata.getVariableValueMap()); this.compilationThread = null; if (! readSpec ()) throw new IOException ("Error reading compilation specification"); }
| 3,241,114 |
public CompileWorker(AutomatedInstallData idata, CompileHandler handler) throws IOException { this.idata = idata; this.handler = handler; this.vs = new VariableSubstitutor(idata.getVariableValueMap()); this.compilationThread = null; if (! readSpec ()) throw new IOException ("Error reading compilation specification"); }
|
public CompileWorker(AutomatedInstallData idata, CompileHandler handler) throws IOException { this.idata = idata; this.handler = handler; this.vs = new VariableSubstitutor(idata.getVariableValueMap()); this.compilationThread = null; if (! readSpec ()) throw new IOException ("Error reading compilation specification"); }
| 3,241,115 |
private void changeClassPath (ArrayList classpath, XMLElement child) throws Exception { String add = child.getAttribute ("add"); if (add != null) { add = this.vs.substitute (add, "plain"); if (! new File (add).exists ()) { if (! this.handler.emitWarning("Invalid classpath", "The path "+add+" could not be found.\nCompilation may fail.")) throw new Exception ("Classpath "+add+" does not exist."); } else { classpath.add (this.vs.substitute (add, "plain")); } } String sub = child.getAttribute ("sub"); if (sub != null) { int cpidx = -1; sub = this.vs.substitute (sub, "plain"); do { cpidx = classpath.indexOf (sub); classpath.remove (cpidx); } while (cpidx >= 0); } }
|
private void changeClassPath(ArrayList classpath, XMLElement child) throws Exception { String add = child.getAttribute ("add"); if (add != null) { add = this.vs.substitute (add, "plain"); if (! new File (add).exists ()) { if (! this.handler.emitWarning("Invalid classpath", "The path "+add+" could not be found.\nCompilation may fail.")) throw new Exception ("Classpath "+add+" does not exist."); } else { classpath.add (this.vs.substitute (add, "plain")); } } String sub = child.getAttribute ("sub"); if (sub != null) { int cpidx = -1; sub = this.vs.substitute (sub, "plain"); do { cpidx = classpath.indexOf (sub); classpath.remove (cpidx); } while (cpidx >= 0); } }
| 3,241,116 |
private void changeClassPath (ArrayList classpath, XMLElement child) throws Exception { String add = child.getAttribute ("add"); if (add != null) { add = this.vs.substitute (add, "plain"); if (! new File (add).exists ()) { if (! this.handler.emitWarning("Invalid classpath", "The path "+add+" could not be found.\nCompilation may fail.")) throw new Exception ("Classpath "+add+" does not exist."); } else { classpath.add (this.vs.substitute (add, "plain")); } } String sub = child.getAttribute ("sub"); if (sub != null) { int cpidx = -1; sub = this.vs.substitute (sub, "plain"); do { cpidx = classpath.indexOf (sub); classpath.remove (cpidx); } while (cpidx >= 0); } }
|
private void changeClassPath (ArrayList classpath, XMLElement child) throws Exception { String add = child.getAttribute("add"); if (add != null) { add = this.vs.substitute (add, "plain"); if (! new File (add).exists ()) { if (! this.handler.emitWarning("Invalid classpath", "The path "+add+" could not be found.\nCompilation may fail.")) throw new Exception ("Classpath "+add+" does not exist."); } else { classpath.add (this.vs.substitute (add, "plain")); } } String sub = child.getAttribute ("sub"); if (sub != null) { int cpidx = -1; sub = this.vs.substitute (sub, "plain"); do { cpidx = classpath.indexOf (sub); classpath.remove (cpidx); } while (cpidx >= 0); } }
| 3,241,117 |
private void changeClassPath (ArrayList classpath, XMLElement child) throws Exception { String add = child.getAttribute ("add"); if (add != null) { add = this.vs.substitute (add, "plain"); if (! new File (add).exists ()) { if (! this.handler.emitWarning("Invalid classpath", "The path "+add+" could not be found.\nCompilation may fail.")) throw new Exception ("Classpath "+add+" does not exist."); } else { classpath.add (this.vs.substitute (add, "plain")); } } String sub = child.getAttribute ("sub"); if (sub != null) { int cpidx = -1; sub = this.vs.substitute (sub, "plain"); do { cpidx = classpath.indexOf (sub); classpath.remove (cpidx); } while (cpidx >= 0); } }
|
private void changeClassPath (ArrayList classpath, XMLElement child) throws Exception { String add = child.getAttribute ("add"); if (add != null) { add = this.vs.substitute (add, "plain"); if (! new File (add).exists ()) { if (! this.handler.emitWarning("Invalid classpath", "The path "+add+" could not be found.\nCompilation may fail.")) throw new Exception ("Classpath "+add+" does not exist."); } else { classpath.add (this.vs.substitute (add, "plain")); } } String sub = child.getAttribute ("sub"); if (sub != null) { int cpidx = -1; sub = this.vs.substitute (sub, "plain"); do { cpidx = classpath.indexOf (sub); classpath.remove (cpidx); } while (cpidx >= 0); } }
| 3,241,118 |
private void changeClassPath (ArrayList classpath, XMLElement child) throws Exception { String add = child.getAttribute ("add"); if (add != null) { add = this.vs.substitute (add, "plain"); if (! new File (add).exists ()) { if (! this.handler.emitWarning("Invalid classpath", "The path "+add+" could not be found.\nCompilation may fail.")) throw new Exception ("Classpath "+add+" does not exist."); } else { classpath.add (this.vs.substitute (add, "plain")); } } String sub = child.getAttribute ("sub"); if (sub != null) { int cpidx = -1; sub = this.vs.substitute (sub, "plain"); do { cpidx = classpath.indexOf (sub); classpath.remove (cpidx); } while (cpidx >= 0); } }
|
private void changeClassPath (ArrayList classpath, XMLElement child) throws Exception { String add = child.getAttribute ("add"); if (add != null) { add = this.vs.substitute (add, "plain"); if (! new File (add).exists ()) { if (! this.handler.emitWarning("Invalid classpath", "The path "+add+" could not be found.\nCompilation may fail.")) throw new Exception ("Classpath "+add+" does not exist."); } else { classpath.add (this.vs.substitute (add, "plain")); } } String sub = child.getAttribute ("sub"); if (sub != null) { int cpidx = -1; sub = this.vs.substitute (sub, "plain"); do { cpidx = classpath.indexOf (sub); classpath.remove (cpidx); } while (cpidx >= 0); } }
| 3,241,119 |
private void changeClassPath (ArrayList classpath, XMLElement child) throws Exception { String add = child.getAttribute ("add"); if (add != null) { add = this.vs.substitute (add, "plain"); if (! new File (add).exists ()) { if (! this.handler.emitWarning("Invalid classpath", "The path "+add+" could not be found.\nCompilation may fail.")) throw new Exception ("Classpath "+add+" does not exist."); } else { classpath.add (this.vs.substitute (add, "plain")); } } String sub = child.getAttribute ("sub"); if (sub != null) { int cpidx = -1; sub = this.vs.substitute (sub, "plain"); do { cpidx = classpath.indexOf (sub); classpath.remove (cpidx); } while (cpidx >= 0); } }
|
private void changeClassPath (ArrayList classpath, XMLElement child) throws Exception { String add = child.getAttribute ("add"); if (add != null) { add = this.vs.substitute (add, "plain"); if (! new File (add).exists ()) { if (! this.handler.emitWarning("Invalid classpath", "The path "+add+" could not be found.\nCompilation may fail.")) throw new Exception ("Classpath "+add+" does not exist."); } else { classpath.add (this.vs.substitute (add, "plain")); } } String sub = child.getAttribute ("sub"); if (sub != null) { int cpidx = -1; sub = this.vs.substitute (sub, "plain"); do { cpidx = classpath.indexOf (sub); classpath.remove (cpidx); } while (cpidx >= 0); } }
| 3,241,120 |
private void changeClassPath (ArrayList classpath, XMLElement child) throws Exception { String add = child.getAttribute ("add"); if (add != null) { add = this.vs.substitute (add, "plain"); if (! new File (add).exists ()) { if (! this.handler.emitWarning("Invalid classpath", "The path "+add+" could not be found.\nCompilation may fail.")) throw new Exception ("Classpath "+add+" does not exist."); } else { classpath.add (this.vs.substitute (add, "plain")); } } String sub = child.getAttribute ("sub"); if (sub != null) { int cpidx = -1; sub = this.vs.substitute (sub, "plain"); do { cpidx = classpath.indexOf (sub); classpath.remove (cpidx); } while (cpidx >= 0); } }
|
private void changeClassPath (ArrayList classpath, XMLElement child) throws Exception { String add = child.getAttribute ("add"); if (add != null) { add = this.vs.substitute (add, "plain"); if (! new File (add).exists ()) { if (! this.handler.emitWarning("Invalid classpath", "The path "+add+" could not be found.\nCompilation may fail.")) throw new Exception ("Classpath "+add+" does not exist."); } else { classpath.add (this.vs.substitute (add, "plain")); } } String sub = child.getAttribute("sub"); if (sub != null) { int cpidx = -1; sub = this.vs.substitute (sub, "plain"); do { cpidx = classpath.indexOf (sub); classpath.remove (cpidx); } while (cpidx >= 0); } }
| 3,241,121 |
private void changeClassPath (ArrayList classpath, XMLElement child) throws Exception { String add = child.getAttribute ("add"); if (add != null) { add = this.vs.substitute (add, "plain"); if (! new File (add).exists ()) { if (! this.handler.emitWarning("Invalid classpath", "The path "+add+" could not be found.\nCompilation may fail.")) throw new Exception ("Classpath "+add+" does not exist."); } else { classpath.add (this.vs.substitute (add, "plain")); } } String sub = child.getAttribute ("sub"); if (sub != null) { int cpidx = -1; sub = this.vs.substitute (sub, "plain"); do { cpidx = classpath.indexOf (sub); classpath.remove (cpidx); } while (cpidx >= 0); } }
|
private void changeClassPath (ArrayList classpath, XMLElement child) throws Exception { String add = child.getAttribute ("add"); if (add != null) { add = this.vs.substitute (add, "plain"); if (! new File (add).exists ()) { if (! this.handler.emitWarning("Invalid classpath", "The path "+add+" could not be found.\nCompilation may fail.")) throw new Exception ("Classpath "+add+" does not exist."); } else { classpath.add (this.vs.substitute (add, "plain")); } } String sub = child.getAttribute ("sub"); if (sub != null) { int cpidx = -1; sub = this.vs.substitute(sub, "plain"); do { cpidx = classpath.indexOf (sub); classpath.remove (cpidx); } while (cpidx >= 0); } }
| 3,241,122 |
private void changeClassPath (ArrayList classpath, XMLElement child) throws Exception { String add = child.getAttribute ("add"); if (add != null) { add = this.vs.substitute (add, "plain"); if (! new File (add).exists ()) { if (! this.handler.emitWarning("Invalid classpath", "The path "+add+" could not be found.\nCompilation may fail.")) throw new Exception ("Classpath "+add+" does not exist."); } else { classpath.add (this.vs.substitute (add, "plain")); } } String sub = child.getAttribute ("sub"); if (sub != null) { int cpidx = -1; sub = this.vs.substitute (sub, "plain"); do { cpidx = classpath.indexOf (sub); classpath.remove (cpidx); } while (cpidx >= 0); } }
|
private void changeClassPath (ArrayList classpath, XMLElement child) throws Exception { String add = child.getAttribute ("add"); if (add != null) { add = this.vs.substitute (add, "plain"); if (! new File (add).exists ()) { if (! this.handler.emitWarning("Invalid classpath", "The path "+add+" could not be found.\nCompilation may fail.")) throw new Exception ("Classpath "+add+" does not exist."); } else { classpath.add (this.vs.substitute (add, "plain")); } } String sub = child.getAttribute ("sub"); if (sub != null) { int cpidx = -1; sub = this.vs.substitute (sub, "plain"); do { cpidx = classpath.indexOf (sub); classpath.remove (cpidx); } while (cpidx >= 0); } }
| 3,241,123 |
private void changeClassPath (ArrayList classpath, XMLElement child) throws Exception { String add = child.getAttribute ("add"); if (add != null) { add = this.vs.substitute (add, "plain"); if (! new File (add).exists ()) { if (! this.handler.emitWarning("Invalid classpath", "The path "+add+" could not be found.\nCompilation may fail.")) throw new Exception ("Classpath "+add+" does not exist."); } else { classpath.add (this.vs.substitute (add, "plain")); } } String sub = child.getAttribute ("sub"); if (sub != null) { int cpidx = -1; sub = this.vs.substitute (sub, "plain"); do { cpidx = classpath.indexOf (sub); classpath.remove (cpidx); } while (cpidx >= 0); } }
|
private void changeClassPath (ArrayList classpath, XMLElement child) throws Exception { String add = child.getAttribute ("add"); if (add != null) { add = this.vs.substitute (add, "plain"); if (! new File (add).exists ()) { if (! this.handler.emitWarning("Invalid classpath", "The path "+add+" could not be found.\nCompilation may fail.")) throw new Exception ("Classpath "+add+" does not exist."); } else { classpath.add (this.vs.substitute (add, "plain")); } } String sub = child.getAttribute ("sub"); if (sub != null) { int cpidx = -1; sub = this.vs.substitute (sub, "plain"); do { cpidx = classpath.indexOf (sub); classpath.remove (cpidx); } while (cpidx >= 0); } }
| 3,241,124 |
private boolean collectJobs () throws Exception { XMLElement data = this.spec.getFirstChildNamed ("jobs"); if (data == null) return false; // list of classpath entries ArrayList classpath = new ArrayList(); this.jobs = new ArrayList(); // we throw away the toplevel compilation job // (all jobs are collected in this.jobs) collectJobsRecursive (data, classpath); return true; }
|
private boolean collectJobs () throws Exception { XMLElement data = this.spec.getFirstChildNamed ("jobs"); if (data == null) return false; // list of classpath entries ArrayList classpath = new ArrayList(); this.jobs = new ArrayList(); // we throw away the toplevel compilation job // (all jobs are collected in this.jobs) collectJobsRecursive (data, classpath); return true; }
| 3,241,125 |
private boolean collectJobs () throws Exception { XMLElement data = this.spec.getFirstChildNamed ("jobs"); if (data == null) return false; // list of classpath entries ArrayList classpath = new ArrayList(); this.jobs = new ArrayList(); // we throw away the toplevel compilation job // (all jobs are collected in this.jobs) collectJobsRecursive (data, classpath); return true; }
|
private boolean collectJobs () throws Exception { XMLElement data = this.spec.getFirstChildNamed("jobs"); if (data == null) return false; // list of classpath entries ArrayList classpath = new ArrayList(); this.jobs = new ArrayList(); // we throw away the toplevel compilation job // (all jobs are collected in this.jobs) collectJobsRecursive (data, classpath); return true; }
| 3,241,126 |
private boolean collectJobs () throws Exception { XMLElement data = this.spec.getFirstChildNamed ("jobs"); if (data == null) return false; // list of classpath entries ArrayList classpath = new ArrayList(); this.jobs = new ArrayList(); // we throw away the toplevel compilation job // (all jobs are collected in this.jobs) collectJobsRecursive (data, classpath); return true; }
|
private boolean collectJobs () throws Exception { XMLElement data = this.spec.getFirstChildNamed ("jobs"); if (data == null) return false; // list of classpath entries ArrayList classpath = new ArrayList(); this.jobs = new ArrayList(); // we throw away the toplevel compilation job // (all jobs are collected in this.jobs) collectJobsRecursive(data, classpath); return true; }
| 3,241,127 |
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive( XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
| 3,241,128 |
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
| 3,241,129 |
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
| 3,241,130 |
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement) toplevel_tags.nextElement(); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
| 3,241,131 |
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName().equals("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
| 3,241,132 |
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
| 3,241,133 |
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive(child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
| 3,241,134 |
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
| 3,241,135 |
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
| 3,241,136 |
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute(name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute(name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
| 3,241,137 |
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll(scanDirectory(new File(finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
| 3,241,138 |
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
| 3,241,139 |
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
| 3,241,140 |
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute(name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute(name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
| 3,241,141 |
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add(new File(finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
| 3,241,142 |
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
| 3,241,143 |
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
| 3,241,144 |
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println( "invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
| 3,241,145 |
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack) pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
| 3,241,146 |
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals(name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
| 3,241,147 |
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (!found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
| 3,241,148 |
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace( "skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
| 3,241,149 |
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob (this.handler, this.idata.langpack, (String)node.getAttribute ("name"), files, ourclasspath); return null; }
|
private CompilationJob collectJobsRecursive (XMLElement node, ArrayList classpath) throws Exception { Enumeration toplevel_tags = node.enumerateChildren (); ArrayList ourclasspath = (ArrayList)classpath.clone (); ArrayList files = new ArrayList(); while (toplevel_tags.hasMoreElements ()) { XMLElement child = (XMLElement)toplevel_tags.nextElement (); if (child.getName ().equals ("classpath")) { changeClassPath (ourclasspath, child); } else if (child.getName ().equals ("job")) { CompilationJob subjob = collectJobsRecursive (child, ourclasspath); if (subjob != null) this.jobs.add (subjob); } else if (child.getName().equals ("directory")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.addAll (scanDirectory (new File (finalname))); } } else if (child.getName().equals ("file")) { String name = child.getAttribute ("name"); if (name != null) { // substitute variables String finalname = this.vs.substitute (name, "plain"); files.add (new File (finalname)); } } else if (child.getName().equals ("packdepency")) { String name = child.getAttribute ("name"); if (name == null) { System.out.println ("invalid compilation spec: <packdepency> without name attribute"); return null; } // check whether the wanted pack was selected for installation Iterator pack_it = this.idata.selectedPacks.iterator(); boolean found = false; while (pack_it.hasNext()) { com.izforge.izpack.Pack pack = (com.izforge.izpack.Pack)pack_it.next(); if (pack.name.equals (name)) { found = true; break; } } if (! found) { Debug.trace ("skipping job because pack " + name + " was not selected."); return null; } } } if (files.size() > 0) return new CompilationJob( this.handler, this.idata.langpack, (String) node.getAttribute("name"), files, ourclasspath); return null; }
| 3,241,150 |
private CompileResult compileJobs () { ArrayList args = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer (this.compilerArgumentsToUse); while (tokenizer.hasMoreTokens ()) { args.add (tokenizer.nextToken()); } Iterator job_it = this.jobs.iterator(); this.handler.startAction ("Compilation", this.jobs.size()); // check whether compiler is valid (but only if there are jobs) if (job_it.hasNext()) { CompilationJob first_job = (CompilationJob)this.jobs.get (0); CompileResult check_result = first_job.checkCompiler (this.compilerToUse, args); if (! check_result.isContinue ()) { return check_result; } } int job_no = 0; while (job_it.hasNext()) { CompilationJob job = (CompilationJob) job_it.next(); this.handler.nextStep (job.getName(), job.getSize(), job_no++); CompileResult result = job.perform (this.compilerToUse, args); if (! result.isContinue()) return result; } Debug.trace ("compilation finished."); return new CompileResult (); }
|
private CompileResult compileJobs() { ArrayList args = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer (this.compilerArgumentsToUse); while (tokenizer.hasMoreTokens ()) { args.add (tokenizer.nextToken()); } Iterator job_it = this.jobs.iterator(); this.handler.startAction ("Compilation", this.jobs.size()); // check whether compiler is valid (but only if there are jobs) if (job_it.hasNext()) { CompilationJob first_job = (CompilationJob)this.jobs.get (0); CompileResult check_result = first_job.checkCompiler (this.compilerToUse, args); if (! check_result.isContinue ()) { return check_result; } } int job_no = 0; while (job_it.hasNext()) { CompilationJob job = (CompilationJob) job_it.next(); this.handler.nextStep (job.getName(), job.getSize(), job_no++); CompileResult result = job.perform (this.compilerToUse, args); if (! result.isContinue()) return result; } Debug.trace ("compilation finished."); return new CompileResult (); }
| 3,241,151 |
private CompileResult compileJobs () { ArrayList args = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer (this.compilerArgumentsToUse); while (tokenizer.hasMoreTokens ()) { args.add (tokenizer.nextToken()); } Iterator job_it = this.jobs.iterator(); this.handler.startAction ("Compilation", this.jobs.size()); // check whether compiler is valid (but only if there are jobs) if (job_it.hasNext()) { CompilationJob first_job = (CompilationJob)this.jobs.get (0); CompileResult check_result = first_job.checkCompiler (this.compilerToUse, args); if (! check_result.isContinue ()) { return check_result; } } int job_no = 0; while (job_it.hasNext()) { CompilationJob job = (CompilationJob) job_it.next(); this.handler.nextStep (job.getName(), job.getSize(), job_no++); CompileResult result = job.perform (this.compilerToUse, args); if (! result.isContinue()) return result; } Debug.trace ("compilation finished."); return new CompileResult (); }
|
private CompileResult compileJobs () { ArrayList args = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer(this.compilerArgumentsToUse); while (tokenizer.hasMoreTokens ()) { args.add (tokenizer.nextToken()); } Iterator job_it = this.jobs.iterator(); this.handler.startAction ("Compilation", this.jobs.size()); // check whether compiler is valid (but only if there are jobs) if (job_it.hasNext()) { CompilationJob first_job = (CompilationJob)this.jobs.get (0); CompileResult check_result = first_job.checkCompiler (this.compilerToUse, args); if (! check_result.isContinue ()) { return check_result; } } int job_no = 0; while (job_it.hasNext()) { CompilationJob job = (CompilationJob) job_it.next(); this.handler.nextStep (job.getName(), job.getSize(), job_no++); CompileResult result = job.perform (this.compilerToUse, args); if (! result.isContinue()) return result; } Debug.trace ("compilation finished."); return new CompileResult (); }
| 3,241,152 |
private CompileResult compileJobs () { ArrayList args = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer (this.compilerArgumentsToUse); while (tokenizer.hasMoreTokens ()) { args.add (tokenizer.nextToken()); } Iterator job_it = this.jobs.iterator(); this.handler.startAction ("Compilation", this.jobs.size()); // check whether compiler is valid (but only if there are jobs) if (job_it.hasNext()) { CompilationJob first_job = (CompilationJob)this.jobs.get (0); CompileResult check_result = first_job.checkCompiler (this.compilerToUse, args); if (! check_result.isContinue ()) { return check_result; } } int job_no = 0; while (job_it.hasNext()) { CompilationJob job = (CompilationJob) job_it.next(); this.handler.nextStep (job.getName(), job.getSize(), job_no++); CompileResult result = job.perform (this.compilerToUse, args); if (! result.isContinue()) return result; } Debug.trace ("compilation finished."); return new CompileResult (); }
|
private CompileResult compileJobs () { ArrayList args = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer (this.compilerArgumentsToUse); while (tokenizer.hasMoreTokens()) { args.add (tokenizer.nextToken()); } Iterator job_it = this.jobs.iterator(); this.handler.startAction ("Compilation", this.jobs.size()); // check whether compiler is valid (but only if there are jobs) if (job_it.hasNext()) { CompilationJob first_job = (CompilationJob)this.jobs.get (0); CompileResult check_result = first_job.checkCompiler (this.compilerToUse, args); if (! check_result.isContinue ()) { return check_result; } } int job_no = 0; while (job_it.hasNext()) { CompilationJob job = (CompilationJob) job_it.next(); this.handler.nextStep (job.getName(), job.getSize(), job_no++); CompileResult result = job.perform (this.compilerToUse, args); if (! result.isContinue()) return result; } Debug.trace ("compilation finished."); return new CompileResult (); }
| 3,241,153 |
private CompileResult compileJobs () { ArrayList args = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer (this.compilerArgumentsToUse); while (tokenizer.hasMoreTokens ()) { args.add (tokenizer.nextToken()); } Iterator job_it = this.jobs.iterator(); this.handler.startAction ("Compilation", this.jobs.size()); // check whether compiler is valid (but only if there are jobs) if (job_it.hasNext()) { CompilationJob first_job = (CompilationJob)this.jobs.get (0); CompileResult check_result = first_job.checkCompiler (this.compilerToUse, args); if (! check_result.isContinue ()) { return check_result; } } int job_no = 0; while (job_it.hasNext()) { CompilationJob job = (CompilationJob) job_it.next(); this.handler.nextStep (job.getName(), job.getSize(), job_no++); CompileResult result = job.perform (this.compilerToUse, args); if (! result.isContinue()) return result; } Debug.trace ("compilation finished."); return new CompileResult (); }
|
private CompileResult compileJobs () { ArrayList args = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer (this.compilerArgumentsToUse); while (tokenizer.hasMoreTokens ()) { args.add(tokenizer.nextToken()); } Iterator job_it = this.jobs.iterator(); this.handler.startAction ("Compilation", this.jobs.size()); // check whether compiler is valid (but only if there are jobs) if (job_it.hasNext()) { CompilationJob first_job = (CompilationJob)this.jobs.get (0); CompileResult check_result = first_job.checkCompiler (this.compilerToUse, args); if (! check_result.isContinue ()) { return check_result; } } int job_no = 0; while (job_it.hasNext()) { CompilationJob job = (CompilationJob) job_it.next(); this.handler.nextStep (job.getName(), job.getSize(), job_no++); CompileResult result = job.perform (this.compilerToUse, args); if (! result.isContinue()) return result; } Debug.trace ("compilation finished."); return new CompileResult (); }
| 3,241,154 |
private CompileResult compileJobs () { ArrayList args = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer (this.compilerArgumentsToUse); while (tokenizer.hasMoreTokens ()) { args.add (tokenizer.nextToken()); } Iterator job_it = this.jobs.iterator(); this.handler.startAction ("Compilation", this.jobs.size()); // check whether compiler is valid (but only if there are jobs) if (job_it.hasNext()) { CompilationJob first_job = (CompilationJob)this.jobs.get (0); CompileResult check_result = first_job.checkCompiler (this.compilerToUse, args); if (! check_result.isContinue ()) { return check_result; } } int job_no = 0; while (job_it.hasNext()) { CompilationJob job = (CompilationJob) job_it.next(); this.handler.nextStep (job.getName(), job.getSize(), job_no++); CompileResult result = job.perform (this.compilerToUse, args); if (! result.isContinue()) return result; } Debug.trace ("compilation finished."); return new CompileResult (); }
|
private CompileResult compileJobs () { ArrayList args = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer (this.compilerArgumentsToUse); while (tokenizer.hasMoreTokens ()) { args.add (tokenizer.nextToken()); } Iterator job_it = this.jobs.iterator(); this.handler.startAction("Compilation", this.jobs.size()); // check whether compiler is valid (but only if there are jobs) if (job_it.hasNext()) { CompilationJob first_job = (CompilationJob)this.jobs.get (0); CompileResult check_result = first_job.checkCompiler (this.compilerToUse, args); if (! check_result.isContinue ()) { return check_result; } } int job_no = 0; while (job_it.hasNext()) { CompilationJob job = (CompilationJob) job_it.next(); this.handler.nextStep (job.getName(), job.getSize(), job_no++); CompileResult result = job.perform (this.compilerToUse, args); if (! result.isContinue()) return result; } Debug.trace ("compilation finished."); return new CompileResult (); }
| 3,241,155 |
private CompileResult compileJobs () { ArrayList args = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer (this.compilerArgumentsToUse); while (tokenizer.hasMoreTokens ()) { args.add (tokenizer.nextToken()); } Iterator job_it = this.jobs.iterator(); this.handler.startAction ("Compilation", this.jobs.size()); // check whether compiler is valid (but only if there are jobs) if (job_it.hasNext()) { CompilationJob first_job = (CompilationJob)this.jobs.get (0); CompileResult check_result = first_job.checkCompiler (this.compilerToUse, args); if (! check_result.isContinue ()) { return check_result; } } int job_no = 0; while (job_it.hasNext()) { CompilationJob job = (CompilationJob) job_it.next(); this.handler.nextStep (job.getName(), job.getSize(), job_no++); CompileResult result = job.perform (this.compilerToUse, args); if (! result.isContinue()) return result; } Debug.trace ("compilation finished."); return new CompileResult (); }
|
private CompileResult compileJobs () { ArrayList args = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer (this.compilerArgumentsToUse); while (tokenizer.hasMoreTokens ()) { args.add (tokenizer.nextToken()); } Iterator job_it = this.jobs.iterator(); this.handler.startAction ("Compilation", this.jobs.size()); // check whether compiler is valid (but only if there are jobs) if (job_it.hasNext()) { CompilationJob first_job = (CompilationJob) this.jobs.get(0); CompileResult check_result = first_job.checkCompiler (this.compilerToUse, args); if (! check_result.isContinue ()) { return check_result; } } int job_no = 0; while (job_it.hasNext()) { CompilationJob job = (CompilationJob) job_it.next(); this.handler.nextStep (job.getName(), job.getSize(), job_no++); CompileResult result = job.perform (this.compilerToUse, args); if (! result.isContinue()) return result; } Debug.trace ("compilation finished."); return new CompileResult (); }
| 3,241,156 |
private CompileResult compileJobs () { ArrayList args = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer (this.compilerArgumentsToUse); while (tokenizer.hasMoreTokens ()) { args.add (tokenizer.nextToken()); } Iterator job_it = this.jobs.iterator(); this.handler.startAction ("Compilation", this.jobs.size()); // check whether compiler is valid (but only if there are jobs) if (job_it.hasNext()) { CompilationJob first_job = (CompilationJob)this.jobs.get (0); CompileResult check_result = first_job.checkCompiler (this.compilerToUse, args); if (! check_result.isContinue ()) { return check_result; } } int job_no = 0; while (job_it.hasNext()) { CompilationJob job = (CompilationJob) job_it.next(); this.handler.nextStep (job.getName(), job.getSize(), job_no++); CompileResult result = job.perform (this.compilerToUse, args); if (! result.isContinue()) return result; } Debug.trace ("compilation finished."); return new CompileResult (); }
|
private CompileResult compileJobs () { ArrayList args = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer (this.compilerArgumentsToUse); while (tokenizer.hasMoreTokens ()) { args.add (tokenizer.nextToken()); } Iterator job_it = this.jobs.iterator(); this.handler.startAction ("Compilation", this.jobs.size()); // check whether compiler is valid (but only if there are jobs) if (job_it.hasNext()) { CompilationJob first_job = (CompilationJob)this.jobs.get (0); CompileResult check_result = first_job.checkCompiler (this.compilerToUse, args); if (! check_result.isContinue ()) { return check_result; } } int job_no = 0; while (job_it.hasNext()) { CompilationJob job = (CompilationJob) job_it.next(); this.handler.nextStep (job.getName(), job.getSize(), job_no++); CompileResult result = job.perform (this.compilerToUse, args); if (! result.isContinue()) return result; } Debug.trace ("compilation finished."); return new CompileResult (); }
| 3,241,157 |
private CompileResult compileJobs () { ArrayList args = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer (this.compilerArgumentsToUse); while (tokenizer.hasMoreTokens ()) { args.add (tokenizer.nextToken()); } Iterator job_it = this.jobs.iterator(); this.handler.startAction ("Compilation", this.jobs.size()); // check whether compiler is valid (but only if there are jobs) if (job_it.hasNext()) { CompilationJob first_job = (CompilationJob)this.jobs.get (0); CompileResult check_result = first_job.checkCompiler (this.compilerToUse, args); if (! check_result.isContinue ()) { return check_result; } } int job_no = 0; while (job_it.hasNext()) { CompilationJob job = (CompilationJob) job_it.next(); this.handler.nextStep (job.getName(), job.getSize(), job_no++); CompileResult result = job.perform (this.compilerToUse, args); if (! result.isContinue()) return result; } Debug.trace ("compilation finished."); return new CompileResult (); }
|
private CompileResult compileJobs () { ArrayList args = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer (this.compilerArgumentsToUse); while (tokenizer.hasMoreTokens ()) { args.add (tokenizer.nextToken()); } Iterator job_it = this.jobs.iterator(); this.handler.startAction ("Compilation", this.jobs.size()); // check whether compiler is valid (but only if there are jobs) if (job_it.hasNext()) { CompilationJob first_job = (CompilationJob)this.jobs.get (0); CompileResult check_result = first_job.checkCompiler (this.compilerToUse, args); if (! check_result.isContinue ()) { return check_result; } } int job_no = 0; while (job_it.hasNext()) { CompilationJob job = (CompilationJob) job_it.next(); CompileResult result = job.perform (this.compilerToUse, args); if (! result.isContinue()) return result; } Debug.trace ("compilation finished."); return new CompileResult (); }
| 3,241,158 |
private CompileResult compileJobs () { ArrayList args = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer (this.compilerArgumentsToUse); while (tokenizer.hasMoreTokens ()) { args.add (tokenizer.nextToken()); } Iterator job_it = this.jobs.iterator(); this.handler.startAction ("Compilation", this.jobs.size()); // check whether compiler is valid (but only if there are jobs) if (job_it.hasNext()) { CompilationJob first_job = (CompilationJob)this.jobs.get (0); CompileResult check_result = first_job.checkCompiler (this.compilerToUse, args); if (! check_result.isContinue ()) { return check_result; } } int job_no = 0; while (job_it.hasNext()) { CompilationJob job = (CompilationJob) job_it.next(); this.handler.nextStep (job.getName(), job.getSize(), job_no++); CompileResult result = job.perform (this.compilerToUse, args); if (! result.isContinue()) return result; } Debug.trace ("compilation finished."); return new CompileResult (); }
|
private CompileResult compileJobs () { ArrayList args = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer (this.compilerArgumentsToUse); while (tokenizer.hasMoreTokens ()) { args.add (tokenizer.nextToken()); } Iterator job_it = this.jobs.iterator(); this.handler.startAction ("Compilation", this.jobs.size()); // check whether compiler is valid (but only if there are jobs) if (job_it.hasNext()) { CompilationJob first_job = (CompilationJob)this.jobs.get (0); CompileResult check_result = first_job.checkCompiler (this.compilerToUse, args); if (! check_result.isContinue ()) { return check_result; } } int job_no = 0; while (job_it.hasNext()) { CompilationJob job = (CompilationJob) job_it.next(); this.handler.nextStep (job.getName(), job.getSize(), job_no++); this.handler.nextStep(job.getName(), job.getSize(), job_no++); if (! result.isContinue()) return result; } Debug.trace ("compilation finished."); return new CompileResult (); }
| 3,241,159 |
private CompileResult compileJobs () { ArrayList args = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer (this.compilerArgumentsToUse); while (tokenizer.hasMoreTokens ()) { args.add (tokenizer.nextToken()); } Iterator job_it = this.jobs.iterator(); this.handler.startAction ("Compilation", this.jobs.size()); // check whether compiler is valid (but only if there are jobs) if (job_it.hasNext()) { CompilationJob first_job = (CompilationJob)this.jobs.get (0); CompileResult check_result = first_job.checkCompiler (this.compilerToUse, args); if (! check_result.isContinue ()) { return check_result; } } int job_no = 0; while (job_it.hasNext()) { CompilationJob job = (CompilationJob) job_it.next(); this.handler.nextStep (job.getName(), job.getSize(), job_no++); CompileResult result = job.perform (this.compilerToUse, args); if (! result.isContinue()) return result; } Debug.trace ("compilation finished."); return new CompileResult (); }
|
private CompileResult compileJobs () { ArrayList args = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer (this.compilerArgumentsToUse); while (tokenizer.hasMoreTokens ()) { args.add (tokenizer.nextToken()); } Iterator job_it = this.jobs.iterator(); this.handler.startAction ("Compilation", this.jobs.size()); // check whether compiler is valid (but only if there are jobs) if (job_it.hasNext()) { CompilationJob first_job = (CompilationJob)this.jobs.get (0); CompileResult check_result = first_job.checkCompiler (this.compilerToUse, args); if (! check_result.isContinue ()) { return check_result; } } int job_no = 0; while (job_it.hasNext()) { CompilationJob job = (CompilationJob) job_it.next(); this.handler.nextStep (job.getName(), job.getSize(), job_no++); CompileResult result = job.perform (this.compilerToUse, args); CompileResult result = job.perform(this.compilerToUse, args); if (!result.isContinue()) return result; } Debug.trace ("compilation finished."); return new CompileResult (); }
| 3,241,160 |
private CompileResult compileJobs () { ArrayList args = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer (this.compilerArgumentsToUse); while (tokenizer.hasMoreTokens ()) { args.add (tokenizer.nextToken()); } Iterator job_it = this.jobs.iterator(); this.handler.startAction ("Compilation", this.jobs.size()); // check whether compiler is valid (but only if there are jobs) if (job_it.hasNext()) { CompilationJob first_job = (CompilationJob)this.jobs.get (0); CompileResult check_result = first_job.checkCompiler (this.compilerToUse, args); if (! check_result.isContinue ()) { return check_result; } } int job_no = 0; while (job_it.hasNext()) { CompilationJob job = (CompilationJob) job_it.next(); this.handler.nextStep (job.getName(), job.getSize(), job_no++); CompileResult result = job.perform (this.compilerToUse, args); if (! result.isContinue()) return result; } Debug.trace ("compilation finished."); return new CompileResult (); }
|
private CompileResult compileJobs () { ArrayList args = new ArrayList(); StringTokenizer tokenizer = new StringTokenizer (this.compilerArgumentsToUse); while (tokenizer.hasMoreTokens ()) { args.add (tokenizer.nextToken()); } Iterator job_it = this.jobs.iterator(); this.handler.startAction ("Compilation", this.jobs.size()); // check whether compiler is valid (but only if there are jobs) if (job_it.hasNext()) { CompilationJob first_job = (CompilationJob)this.jobs.get (0); CompileResult check_result = first_job.checkCompiler (this.compilerToUse, args); if (! check_result.isContinue ()) { return check_result; } } int job_no = 0; while (job_it.hasNext()) { CompilationJob job = (CompilationJob) job_it.next(); this.handler.nextStep (job.getName(), job.getSize(), job_no++); CompileResult result = job.perform (this.compilerToUse, args); if (! result.isContinue()) return result; } Debug.trace ("compilation finished."); return new CompileResult (); }
| 3,241,161 |
public ArrayList getAvailableArguments () { readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); return this.compilerArgumentsList; }
|
public ArrayList getAvailableArguments() { readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); return this.compilerArgumentsList; }
| 3,241,162 |
public ArrayList getAvailableArguments () { readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); return this.compilerArgumentsList; }
|
public ArrayList getAvailableArguments () { readChoices(this.compilerArgumentsSpec, this.compilerArgumentsList); return this.compilerArgumentsList; }
| 3,241,163 |
public ArrayList getAvailableCompilers () { readChoices (this.compilerSpec, this.compilerList); return this.compilerList; }
|
public ArrayList getAvailableCompilers() { readChoices (this.compilerSpec, this.compilerList); return this.compilerList; }
| 3,241,164 |
public ArrayList getAvailableCompilers () { readChoices (this.compilerSpec, this.compilerList); return this.compilerList; }
|
public ArrayList getAvailableCompilers () { readChoices(this.compilerSpec, this.compilerList); return this.compilerList; }
| 3,241,165 |
public String getCompiler () { return this.compilerToUse; }
|
public String getCompiler() { return this.compilerToUse; }
| 3,241,166 |
public String getCompilerArguments () { return this.compilerArgumentsToUse; }
|
public String getCompilerArguments() { return this.compilerArgumentsToUse; }
| 3,241,167 |
public CompileResult getResult () { return this.result; }
|
public CompileResult getResult() { return this.result; }
| 3,241,168 |
private void readChoices (XMLElement element, ArrayList result) { Vector choices = element.getChildrenNamed ("choice"); if (choices == null) return; result.clear (); Iterator choice_it = choices.iterator(); while (choice_it.hasNext ()) { XMLElement choice = (XMLElement)choice_it.next(); String value = choice.getAttribute ("value"); if (value != null) { List osconstraints = OsConstraint.getOsList(choice); if (OsConstraint.oneMatchesCurrentSystem(osconstraints)) { result.add (this.vs.substitute (value, "plain")); } } } }
|
private void readChoices(XMLElement element, ArrayList result) { Vector choices = element.getChildrenNamed ("choice"); if (choices == null) return; result.clear (); Iterator choice_it = choices.iterator(); while (choice_it.hasNext ()) { XMLElement choice = (XMLElement)choice_it.next(); String value = choice.getAttribute ("value"); if (value != null) { List osconstraints = OsConstraint.getOsList(choice); if (OsConstraint.oneMatchesCurrentSystem(osconstraints)) { result.add (this.vs.substitute (value, "plain")); } } } }
| 3,241,169 |
private void readChoices (XMLElement element, ArrayList result) { Vector choices = element.getChildrenNamed ("choice"); if (choices == null) return; result.clear (); Iterator choice_it = choices.iterator(); while (choice_it.hasNext ()) { XMLElement choice = (XMLElement)choice_it.next(); String value = choice.getAttribute ("value"); if (value != null) { List osconstraints = OsConstraint.getOsList(choice); if (OsConstraint.oneMatchesCurrentSystem(osconstraints)) { result.add (this.vs.substitute (value, "plain")); } } } }
|
private void readChoices (XMLElement element, ArrayList result) { Vector choices = element.getChildrenNamed("choice"); if (choices == null) return; result.clear (); Iterator choice_it = choices.iterator(); while (choice_it.hasNext ()) { XMLElement choice = (XMLElement)choice_it.next(); String value = choice.getAttribute ("value"); if (value != null) { List osconstraints = OsConstraint.getOsList(choice); if (OsConstraint.oneMatchesCurrentSystem(osconstraints)) { result.add (this.vs.substitute (value, "plain")); } } } }
| 3,241,170 |
private void readChoices (XMLElement element, ArrayList result) { Vector choices = element.getChildrenNamed ("choice"); if (choices == null) return; result.clear (); Iterator choice_it = choices.iterator(); while (choice_it.hasNext ()) { XMLElement choice = (XMLElement)choice_it.next(); String value = choice.getAttribute ("value"); if (value != null) { List osconstraints = OsConstraint.getOsList(choice); if (OsConstraint.oneMatchesCurrentSystem(osconstraints)) { result.add (this.vs.substitute (value, "plain")); } } } }
|
private void readChoices (XMLElement element, ArrayList result) { Vector choices = element.getChildrenNamed ("choice"); if (choices == null) return; result.clear(); Iterator choice_it = choices.iterator(); while (choice_it.hasNext ()) { XMLElement choice = (XMLElement)choice_it.next(); String value = choice.getAttribute ("value"); if (value != null) { List osconstraints = OsConstraint.getOsList(choice); if (OsConstraint.oneMatchesCurrentSystem(osconstraints)) { result.add (this.vs.substitute (value, "plain")); } } } }
| 3,241,171 |
private void readChoices (XMLElement element, ArrayList result) { Vector choices = element.getChildrenNamed ("choice"); if (choices == null) return; result.clear (); Iterator choice_it = choices.iterator(); while (choice_it.hasNext ()) { XMLElement choice = (XMLElement)choice_it.next(); String value = choice.getAttribute ("value"); if (value != null) { List osconstraints = OsConstraint.getOsList(choice); if (OsConstraint.oneMatchesCurrentSystem(osconstraints)) { result.add (this.vs.substitute (value, "plain")); } } } }
|
private void readChoices (XMLElement element, ArrayList result) { Vector choices = element.getChildrenNamed ("choice"); if (choices == null) return; result.clear (); Iterator choice_it = choices.iterator(); while (choice_it.hasNext()) { XMLElement choice = (XMLElement)choice_it.next(); String value = choice.getAttribute ("value"); if (value != null) { List osconstraints = OsConstraint.getOsList(choice); if (OsConstraint.oneMatchesCurrentSystem(osconstraints)) { result.add (this.vs.substitute (value, "plain")); } } } }
| 3,241,172 |
private void readChoices (XMLElement element, ArrayList result) { Vector choices = element.getChildrenNamed ("choice"); if (choices == null) return; result.clear (); Iterator choice_it = choices.iterator(); while (choice_it.hasNext ()) { XMLElement choice = (XMLElement)choice_it.next(); String value = choice.getAttribute ("value"); if (value != null) { List osconstraints = OsConstraint.getOsList(choice); if (OsConstraint.oneMatchesCurrentSystem(osconstraints)) { result.add (this.vs.substitute (value, "plain")); } } } }
|
private void readChoices (XMLElement element, ArrayList result) { Vector choices = element.getChildrenNamed ("choice"); if (choices == null) return; result.clear (); Iterator choice_it = choices.iterator(); while (choice_it.hasNext ()) { XMLElement choice = (XMLElement) choice_it.next(); String value = choice.getAttribute ("value"); if (value != null) { List osconstraints = OsConstraint.getOsList(choice); if (OsConstraint.oneMatchesCurrentSystem(osconstraints)) { result.add (this.vs.substitute (value, "plain")); } } } }
| 3,241,173 |
private void readChoices (XMLElement element, ArrayList result) { Vector choices = element.getChildrenNamed ("choice"); if (choices == null) return; result.clear (); Iterator choice_it = choices.iterator(); while (choice_it.hasNext ()) { XMLElement choice = (XMLElement)choice_it.next(); String value = choice.getAttribute ("value"); if (value != null) { List osconstraints = OsConstraint.getOsList(choice); if (OsConstraint.oneMatchesCurrentSystem(osconstraints)) { result.add (this.vs.substitute (value, "plain")); } } } }
|
private void readChoices (XMLElement element, ArrayList result) { Vector choices = element.getChildrenNamed ("choice"); if (choices == null) return; result.clear (); Iterator choice_it = choices.iterator(); while (choice_it.hasNext ()) { XMLElement choice = (XMLElement)choice_it.next(); String value = choice.getAttribute("value"); if (value != null) { List osconstraints = OsConstraint.getOsList(choice); if (OsConstraint.oneMatchesCurrentSystem(osconstraints)) { result.add (this.vs.substitute (value, "plain")); } } } }
| 3,241,174 |
private void readChoices (XMLElement element, ArrayList result) { Vector choices = element.getChildrenNamed ("choice"); if (choices == null) return; result.clear (); Iterator choice_it = choices.iterator(); while (choice_it.hasNext ()) { XMLElement choice = (XMLElement)choice_it.next(); String value = choice.getAttribute ("value"); if (value != null) { List osconstraints = OsConstraint.getOsList(choice); if (OsConstraint.oneMatchesCurrentSystem(osconstraints)) { result.add (this.vs.substitute (value, "plain")); } } } }
|
private void readChoices (XMLElement element, ArrayList result) { Vector choices = element.getChildrenNamed ("choice"); if (choices == null) return; result.clear (); Iterator choice_it = choices.iterator(); while (choice_it.hasNext ()) { XMLElement choice = (XMLElement)choice_it.next(); String value = choice.getAttribute ("value"); if (value != null) { List osconstraints = OsConstraint.getOsList(choice); if (OsConstraint.oneMatchesCurrentSystem(osconstraints)) { result.add (this.vs.substitute (value, "plain")); } } } }
| 3,241,175 |
private void readChoices (XMLElement element, ArrayList result) { Vector choices = element.getChildrenNamed ("choice"); if (choices == null) return; result.clear (); Iterator choice_it = choices.iterator(); while (choice_it.hasNext ()) { XMLElement choice = (XMLElement)choice_it.next(); String value = choice.getAttribute ("value"); if (value != null) { List osconstraints = OsConstraint.getOsList(choice); if (OsConstraint.oneMatchesCurrentSystem(osconstraints)) { result.add (this.vs.substitute (value, "plain")); } } } }
|
private void readChoices (XMLElement element, ArrayList result) { Vector choices = element.getChildrenNamed ("choice"); if (choices == null) return; result.clear (); Iterator choice_it = choices.iterator(); while (choice_it.hasNext ()) { XMLElement choice = (XMLElement)choice_it.next(); String value = choice.getAttribute ("value"); if (value != null) { List osconstraints = OsConstraint.getOsList(choice); if (OsConstraint.oneMatchesCurrentSystem(osconstraints)) { result.add(this.vs.substitute(value, "plain")); } } } }
| 3,241,176 |
private void readChoices (XMLElement element, ArrayList result) { Vector choices = element.getChildrenNamed ("choice"); if (choices == null) return; result.clear (); Iterator choice_it = choices.iterator(); while (choice_it.hasNext ()) { XMLElement choice = (XMLElement)choice_it.next(); String value = choice.getAttribute ("value"); if (value != null) { List osconstraints = OsConstraint.getOsList(choice); if (OsConstraint.oneMatchesCurrentSystem(osconstraints)) { result.add (this.vs.substitute (value, "plain")); } } } }
|
private void readChoices (XMLElement element, ArrayList result) { Vector choices = element.getChildrenNamed ("choice"); if (choices == null) return; result.clear (); Iterator choice_it = choices.iterator(); while (choice_it.hasNext ()) { XMLElement choice = (XMLElement)choice_it.next(); String value = choice.getAttribute ("value"); if (value != null) { List osconstraints = OsConstraint.getOsList(choice); if (OsConstraint.oneMatchesCurrentSystem(osconstraints)) { result.add (this.vs.substitute (value, "plain")); } } } }
| 3,241,177 |
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
|
private boolean readSpec() { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
| 3,241,178 |
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
|
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
| 3,241,179 |
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
|
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
| 3,241,180 |
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
|
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
| 3,241,181 |
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
|
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
| 3,241,182 |
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
|
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
| 3,241,183 |
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
|
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (!this.spec.hasChildren()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
| 3,241,184 |
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
|
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
| 3,241,185 |
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
|
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
| 3,241,186 |
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
|
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
| 3,241,187 |
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
|
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices(this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
| 3,241,188 |
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
|
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
| 3,241,189 |
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
|
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices(this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
| 3,241,190 |
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
|
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
| 3,241,191 |
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
|
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size() == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
| 3,241,192 |
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
|
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.out.println("Error parsing XML specification for compilation."); e.printStackTrace(); return false; } if (! this.spec.hasChildren ()) return false; this.compilerArgumentsList = new ArrayList (); this.compilerList = new ArrayList (); // read <global> information XMLElement global = this.spec.getFirstChildNamed ("global"); // use some default values if no <global> section found if (global != null) { // get list of compilers this.compilerSpec = global.getFirstChildNamed ("compiler"); if (this.compilerSpec != null) { readChoices (this.compilerSpec, this.compilerList); } this.compilerArgumentsSpec = global.getFirstChildNamed ("arguments"); if (this.compilerArgumentsSpec != null) { // basicly perform sanity check readChoices (this.compilerArgumentsSpec, this.compilerArgumentsList); } } // supply default values if no useful ones where found if (this.compilerList.size() == 0) { this.compilerList.add ("javac"); this.compilerList.add ("jikes"); } if (this.compilerArgumentsList.size () == 0) { this.compilerArgumentsList.add ("-O -g:none"); this.compilerArgumentsList.add ("-O"); this.compilerArgumentsList.add ("-g"); this.compilerArgumentsList.add (""); } return true; }
| 3,241,193 |
public void run () { try { if (! collectJobs ()) { String[] dummy_command = { "no command" }; this.result = new CompileResult (this.idata.langpack.getString ("CompilePanel.worker.nofiles"), dummy_command, "", ""); } else { this.result = compileJobs (); } } catch (Exception e) { this.result = new CompileResult (); this.result.setStatus (CompileResult.FAILED); this.result.setAction (CompileResult.ACTION_ABORT); } this.handler.stopAction (); }
|
public void run() { try { if (! collectJobs ()) { String[] dummy_command = { "no command" }; this.result = new CompileResult (this.idata.langpack.getString ("CompilePanel.worker.nofiles"), dummy_command, "", ""); } else { this.result = compileJobs (); } } catch (Exception e) { this.result = new CompileResult (); this.result.setStatus (CompileResult.FAILED); this.result.setAction (CompileResult.ACTION_ABORT); } this.handler.stopAction (); }
| 3,241,194 |
public void run () { try { if (! collectJobs ()) { String[] dummy_command = { "no command" }; this.result = new CompileResult (this.idata.langpack.getString ("CompilePanel.worker.nofiles"), dummy_command, "", ""); } else { this.result = compileJobs (); } } catch (Exception e) { this.result = new CompileResult (); this.result.setStatus (CompileResult.FAILED); this.result.setAction (CompileResult.ACTION_ABORT); } this.handler.stopAction (); }
|
public void run () { try { if (!collectJobs()) { String[] dummy_command = { "no command" }; this.result = new CompileResult (this.idata.langpack.getString ("CompilePanel.worker.nofiles"), dummy_command, "", ""); } else { this.result = compileJobs (); } } catch (Exception e) { this.result = new CompileResult (); this.result.setStatus (CompileResult.FAILED); this.result.setAction (CompileResult.ACTION_ABORT); } this.handler.stopAction (); }
| 3,241,195 |
public void run () { try { if (! collectJobs ()) { String[] dummy_command = { "no command" }; this.result = new CompileResult (this.idata.langpack.getString ("CompilePanel.worker.nofiles"), dummy_command, "", ""); } else { this.result = compileJobs (); } } catch (Exception e) { this.result = new CompileResult (); this.result.setStatus (CompileResult.FAILED); this.result.setAction (CompileResult.ACTION_ABORT); } this.handler.stopAction (); }
|
public void run () { try { if (! collectJobs ()) { String[] dummy_command = { "no command" }; this.result = new CompileResult( this.idata.langpack.getString("CompilePanel.worker.nofiles"), dummy_command, "", ""); } else { this.result = compileJobs(); } else { this.result = compileJobs (); } } catch (Exception e) { this.result = new CompileResult (); this.result.setStatus (CompileResult.FAILED); this.result.setAction (CompileResult.ACTION_ABORT); } this.handler.stopAction (); }
| 3,241,196 |
public void run () { try { if (! collectJobs ()) { String[] dummy_command = { "no command" }; this.result = new CompileResult (this.idata.langpack.getString ("CompilePanel.worker.nofiles"), dummy_command, "", ""); } else { this.result = compileJobs (); } } catch (Exception e) { this.result = new CompileResult (); this.result.setStatus (CompileResult.FAILED); this.result.setAction (CompileResult.ACTION_ABORT); } this.handler.stopAction (); }
|
public void run () { try { if (! collectJobs ()) { String[] dummy_command = { "no command" }; this.result = new CompileResult (this.idata.langpack.getString ("CompilePanel.worker.nofiles"), dummy_command, "", ""); } else { this.result = compileJobs (); } } catch (Exception e) { this.result = new CompileResult (); this.result.setStatus (CompileResult.FAILED); this.result.setAction (CompileResult.ACTION_ABORT); } this.handler.stopAction (); }
| 3,241,197 |
public void run () { try { if (! collectJobs ()) { String[] dummy_command = { "no command" }; this.result = new CompileResult (this.idata.langpack.getString ("CompilePanel.worker.nofiles"), dummy_command, "", ""); } else { this.result = compileJobs (); } } catch (Exception e) { this.result = new CompileResult (); this.result.setStatus (CompileResult.FAILED); this.result.setAction (CompileResult.ACTION_ABORT); } this.handler.stopAction (); }
|
public void run () { try { if (! collectJobs ()) { String[] dummy_command = { "no command" }; this.result = new CompileResult (this.idata.langpack.getString ("CompilePanel.worker.nofiles"), dummy_command, "", ""); } else { this.result = compileJobs (); } } catch (Exception e) { this.result = new CompileResult (); this.result.setStatus (CompileResult.FAILED); this.result.setAction (CompileResult.ACTION_ABORT); } this.handler.stopAction (); }
| 3,241,198 |
public void run () { try { if (! collectJobs ()) { String[] dummy_command = { "no command" }; this.result = new CompileResult (this.idata.langpack.getString ("CompilePanel.worker.nofiles"), dummy_command, "", ""); } else { this.result = compileJobs (); } } catch (Exception e) { this.result = new CompileResult (); this.result.setStatus (CompileResult.FAILED); this.result.setAction (CompileResult.ACTION_ABORT); } this.handler.stopAction (); }
|
public void run () { try { if (! collectJobs ()) { String[] dummy_command = { "no command" }; this.result = new CompileResult (this.idata.langpack.getString ("CompilePanel.worker.nofiles"), dummy_command, "", ""); } else { this.result = compileJobs (); } } catch (Exception e) { this.result = new CompileResult (); this.result.setStatus (CompileResult.FAILED); this.result.setAction (CompileResult.ACTION_ABORT); } this.handler.stopAction(); }
| 3,241,199 |
private ArrayList scanDirectory (File path) { Debug.trace ("scanning directory " + path.getAbsolutePath()); ArrayList result = new ArrayList (); if (! path.isDirectory ()) return result; File[] entries = path.listFiles (); for (int i = 0; i < entries.length; i++) { File f = entries[i]; if (f == null) continue; if (f.isDirectory ()) { result.addAll (scanDirectory (f)); } else if ((f.isFile()) && (f.getName().toLowerCase().endsWith (".java"))) { result.add (f); } } return result; }
|
private ArrayList scanDirectory(File path) { Debug.trace ("scanning directory " + path.getAbsolutePath()); ArrayList result = new ArrayList (); if (! path.isDirectory ()) return result; File[] entries = path.listFiles (); for (int i = 0; i < entries.length; i++) { File f = entries[i]; if (f == null) continue; if (f.isDirectory ()) { result.addAll (scanDirectory (f)); } else if ((f.isFile()) && (f.getName().toLowerCase().endsWith (".java"))) { result.add (f); } } return result; }
| 3,241,200 |
private ArrayList scanDirectory (File path) { Debug.trace ("scanning directory " + path.getAbsolutePath()); ArrayList result = new ArrayList (); if (! path.isDirectory ()) return result; File[] entries = path.listFiles (); for (int i = 0; i < entries.length; i++) { File f = entries[i]; if (f == null) continue; if (f.isDirectory ()) { result.addAll (scanDirectory (f)); } else if ((f.isFile()) && (f.getName().toLowerCase().endsWith (".java"))) { result.add (f); } } return result; }
|
private ArrayList scanDirectory (File path) { Debug.trace("scanning directory " + path.getAbsolutePath()); ArrayList result = new ArrayList (); if (! path.isDirectory ()) return result; File[] entries = path.listFiles (); for (int i = 0; i < entries.length; i++) { File f = entries[i]; if (f == null) continue; if (f.isDirectory ()) { result.addAll (scanDirectory (f)); } else if ((f.isFile()) && (f.getName().toLowerCase().endsWith (".java"))) { result.add (f); } } return result; }
| 3,241,201 |
private ArrayList scanDirectory (File path) { Debug.trace ("scanning directory " + path.getAbsolutePath()); ArrayList result = new ArrayList (); if (! path.isDirectory ()) return result; File[] entries = path.listFiles (); for (int i = 0; i < entries.length; i++) { File f = entries[i]; if (f == null) continue; if (f.isDirectory ()) { result.addAll (scanDirectory (f)); } else if ((f.isFile()) && (f.getName().toLowerCase().endsWith (".java"))) { result.add (f); } } return result; }
|
private ArrayList scanDirectory (File path) { Debug.trace ("scanning directory " + path.getAbsolutePath()); ArrayList result = new ArrayList(); if (! path.isDirectory ()) return result; File[] entries = path.listFiles (); for (int i = 0; i < entries.length; i++) { File f = entries[i]; if (f == null) continue; if (f.isDirectory ()) { result.addAll (scanDirectory (f)); } else if ((f.isFile()) && (f.getName().toLowerCase().endsWith (".java"))) { result.add (f); } } return result; }
| 3,241,202 |
private ArrayList scanDirectory (File path) { Debug.trace ("scanning directory " + path.getAbsolutePath()); ArrayList result = new ArrayList (); if (! path.isDirectory ()) return result; File[] entries = path.listFiles (); for (int i = 0; i < entries.length; i++) { File f = entries[i]; if (f == null) continue; if (f.isDirectory ()) { result.addAll (scanDirectory (f)); } else if ((f.isFile()) && (f.getName().toLowerCase().endsWith (".java"))) { result.add (f); } } return result; }
|
private ArrayList scanDirectory (File path) { Debug.trace ("scanning directory " + path.getAbsolutePath()); ArrayList result = new ArrayList (); if (!path.isDirectory()) return result; File[] entries = path.listFiles (); for (int i = 0; i < entries.length; i++) { File f = entries[i]; if (f == null) continue; if (f.isDirectory ()) { result.addAll (scanDirectory (f)); } else if ((f.isFile()) && (f.getName().toLowerCase().endsWith (".java"))) { result.add (f); } } return result; }
| 3,241,203 |
private ArrayList scanDirectory (File path) { Debug.trace ("scanning directory " + path.getAbsolutePath()); ArrayList result = new ArrayList (); if (! path.isDirectory ()) return result; File[] entries = path.listFiles (); for (int i = 0; i < entries.length; i++) { File f = entries[i]; if (f == null) continue; if (f.isDirectory ()) { result.addAll (scanDirectory (f)); } else if ((f.isFile()) && (f.getName().toLowerCase().endsWith (".java"))) { result.add (f); } } return result; }
|
private ArrayList scanDirectory (File path) { Debug.trace ("scanning directory " + path.getAbsolutePath()); ArrayList result = new ArrayList (); if (! path.isDirectory ()) return result; File[] entries = path.listFiles(); for (int i = 0; i < entries.length; i++) { File f = entries[i]; if (f == null) continue; if (f.isDirectory ()) { result.addAll (scanDirectory (f)); } else if ((f.isFile()) && (f.getName().toLowerCase().endsWith (".java"))) { result.add (f); } } return result; }
| 3,241,204 |
private ArrayList scanDirectory (File path) { Debug.trace ("scanning directory " + path.getAbsolutePath()); ArrayList result = new ArrayList (); if (! path.isDirectory ()) return result; File[] entries = path.listFiles (); for (int i = 0; i < entries.length; i++) { File f = entries[i]; if (f == null) continue; if (f.isDirectory ()) { result.addAll (scanDirectory (f)); } else if ((f.isFile()) && (f.getName().toLowerCase().endsWith (".java"))) { result.add (f); } } return result; }
|
private ArrayList scanDirectory (File path) { Debug.trace ("scanning directory " + path.getAbsolutePath()); ArrayList result = new ArrayList (); if (! path.isDirectory ()) return result; File[] entries = path.listFiles (); for (int i = 0; i < entries.length; i++) { File f = entries[i]; if (f == null) continue; if (f.isDirectory ()) { result.addAll (scanDirectory (f)); } else if ((f.isFile()) && (f.getName().toLowerCase().endsWith (".java"))) { result.add (f); } } return result; }
| 3,241,205 |
private ArrayList scanDirectory (File path) { Debug.trace ("scanning directory " + path.getAbsolutePath()); ArrayList result = new ArrayList (); if (! path.isDirectory ()) return result; File[] entries = path.listFiles (); for (int i = 0; i < entries.length; i++) { File f = entries[i]; if (f == null) continue; if (f.isDirectory ()) { result.addAll (scanDirectory (f)); } else if ((f.isFile()) && (f.getName().toLowerCase().endsWith (".java"))) { result.add (f); } } return result; }
|
private ArrayList scanDirectory (File path) { Debug.trace ("scanning directory " + path.getAbsolutePath()); ArrayList result = new ArrayList (); if (! path.isDirectory ()) return result; File[] entries = path.listFiles (); for (int i = 0; i < entries.length; i++) { File f = entries[i]; if (f == null) continue; if (f.isDirectory ()) { result.addAll (scanDirectory (f)); } else if ((f.isFile()) && (f.getName().toLowerCase().endsWith (".java"))) { result.add (f); } } return result; }
| 3,241,206 |
private ArrayList scanDirectory (File path) { Debug.trace ("scanning directory " + path.getAbsolutePath()); ArrayList result = new ArrayList (); if (! path.isDirectory ()) return result; File[] entries = path.listFiles (); for (int i = 0; i < entries.length; i++) { File f = entries[i]; if (f == null) continue; if (f.isDirectory ()) { result.addAll (scanDirectory (f)); } else if ((f.isFile()) && (f.getName().toLowerCase().endsWith (".java"))) { result.add (f); } } return result; }
|
private ArrayList scanDirectory (File path) { Debug.trace ("scanning directory " + path.getAbsolutePath()); ArrayList result = new ArrayList (); if (! path.isDirectory ()) return result; File[] entries = path.listFiles (); for (int i = 0; i < entries.length; i++) { File f = entries[i]; if (f == null) continue; if (f.isDirectory ()) { result.addAll (scanDirectory (f)); } else if ((f.isFile()) && (f.getName().toLowerCase().endsWith (".java"))) { result.add(f); } } return result; }
| 3,241,207 |
public void setCompiler (String compiler) { this.compilerToUse = compiler; }
|
public void setCompiler(String compiler) { this.compilerToUse = compiler; }
| 3,241,208 |
public void setCompilerArguments (String arguments) { this.compilerArgumentsToUse = arguments; }
|
public void setCompilerArguments(String arguments) { this.compilerArgumentsToUse = arguments; }
| 3,241,209 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.