rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
} else
} else
public static void main(String[] args) { // Outputs some informations System.out.println(""); System.out.println(".:: IzPack - Version " + IZPACK_VERSION + " ::."); System.out.println(""); System.out.println("< compiler specifications version : " + VERSION + " >"); System.out.println(""); Syste...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
System.out.println("-> Command line parameters are : (xml file) [args]"); System.out.println(" (xml file): the xml file describing the installation"); System.out.println(" -b (base) : indicates the base path that the compiler will use for filenames");
System.out.println( "-> Command line parameters are : (xml file) [args]"); System.out.println( " (xml file): the xml file describing the installation"); System.out.println( " -b (base) : indicates the base path that the compiler will use for filenames");
public static void main(String[] args) { // Outputs some informations System.out.println(""); System.out.println(".:: IzPack - Version " + IZPACK_VERSION + " ::."); System.out.println(""); System.out.println("< compiler specifications version : " + VERSION + " >"); System.out.println(""); Syste...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
System.out.println(" -k (kind) : indicates the kind of installer to generate");
System.out.println( " -k (kind) : indicates the kind of installer to generate");
public static void main(String[] args) { // Outputs some informations System.out.println(""); System.out.println(".:: IzPack - Version " + IZPACK_VERSION + " ::."); System.out.println(""); System.out.println("< compiler specifications version : " + VERSION + " >"); System.out.println(""); Syste...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
System.out.println(" When using vm option -DSTACKTRACE=true there is all kind of debug info ");
System.out.println( " When using vm option -DSTACKTRACE=true there is all kind of debug info ");
public static void main(String[] args) { // Outputs some informations System.out.println(""); System.out.println(".:: IzPack - Version " + IZPACK_VERSION + " ::."); System.out.println(""); System.out.println("< compiler specifications version : " + VERSION + " >"); System.out.println(""); Syste...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
} else {
} else {
public static void main(String[] args) { // Outputs some informations System.out.println(""); System.out.println(".:: IzPack - Version " + IZPACK_VERSION + " ::."); System.out.println(""); System.out.println("< compiler specifications version : " + VERSION + " >"); System.out.println(""); Syste...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
case 'b': if ((pos + 1) < nArgs) { pos++; base = args[pos]; } else throw new Exception("base argument missing"); break; case 'k': if ((pos + 1) < nArgs) { pos++; kind = args[pos]; } else throw new Exception("kind argument missing"); break; case 'o': if ((pos + 1) < nArgs) { pos++; output = args[pos]; } else throw new E...
case 'b' : if ((pos + 1) < nArgs) { pos++; base = args[pos]; } else throw new Exception("base argument missing"); break; case 'k' : if ((pos + 1) < nArgs) { pos++; kind = args[pos]; } else throw new Exception("kind argument missing"); break; case 'o' : if ((pos + 1) < nArgs) { pos++; output = args[pos]; } else throw ne...
public static void main(String[] args) { // Outputs some informations System.out.println(""); System.out.println(".:: IzPack - Version " + IZPACK_VERSION + " ::."); System.out.println(""); System.out.println("< compiler specifications version : " + VERSION + " >"); System.out.println(""); Syste...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
} else
} else
public static void main(String[] args) { // Outputs some informations System.out.println(""); System.out.println(".:: IzPack - Version " + IZPACK_VERSION + " ::."); System.out.println(""); System.out.println("< compiler specifications version : " + VERSION + " >"); System.out.println(""); Syste...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
public static void main(String[] args) { // Outputs some informations System.out.println(""); System.out.println(".:: IzPack - Version " + IZPACK_VERSION + " ::."); System.out.println(""); System.out.println("< compiler specifications version : " + VERSION + " >"); System.out.println(""); Syste...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
System.out.println("Build time: "+new Date());
System.out.println("Build time: " + new Date());
public static void main(String[] args) { // Outputs some informations System.out.println(""); System.out.println(".:: IzPack - Version " + IZPACK_VERSION + " ::."); System.out.println(""); System.out.println("< compiler specifications version : " + VERSION + " >"); System.out.println(""); Syste...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
} catch (Exception err)
} catch (Exception err)
public static void main(String[] args) { // Outputs some informations System.out.println(""); System.out.println(".:: IzPack - Version " + IZPACK_VERSION + " ::."); System.out.println(""); System.out.println("< compiler specifications version : " + VERSION + " >"); System.out.println(""); Syste...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
protected void parseError (XMLElement parent, String message)
protected void parseError(XMLElement parent, String message)
protected void parseError (XMLElement parent, String message) throws CompilerException { this.compileFailed = true; throw new CompilerException(filename+":"+parent.getLineNr()+": "+message); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
throw new CompilerException(filename+":"+parent.getLineNr()+": "+message);
throw new CompilerException( filename + ":" + parent.getLineNr() + ": " + message);
protected void parseError (XMLElement parent, String message) throws CompilerException { this.compileFailed = true; throw new CompilerException(filename+":"+parent.getLineNr()+": "+message); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
protected void parseWarn (XMLElement parent, String message)
protected void parseWarn(XMLElement parent, String message)
protected void parseWarn (XMLElement parent, String message) { System.out.println (filename+":"+parent.getLineNr()+": "+message); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
System.out.println (filename+":"+parent.getLineNr()+": "+message);
System.out.println(filename + ":" + parent.getLineNr() + ": " + message);
protected void parseWarn (XMLElement parent, String message) { System.out.println (filename+":"+parent.getLineNr()+": "+message); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
protected String requireAttribute (XMLElement element, String attribute)
protected String requireAttribute(XMLElement element, String attribute)
protected String requireAttribute (XMLElement element, String attribute) throws CompilerException { String value = element.getAttribute(attribute); if (value == null) parseError(element, "<"+element.getName()+"> requires attribute '"+attribute+"'"); return value; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
parseError(element, "<"+element.getName()+"> requires attribute '"+attribute+"'");
parseError( element, "<" + element.getName() + "> requires attribute '" + attribute + "'");
protected String requireAttribute (XMLElement element, String attribute) throws CompilerException { String value = element.getAttribute(attribute); if (value == null) parseError(element, "<"+element.getName()+"> requires attribute '"+attribute+"'"); return value; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
protected XMLElement requireChildNamed (XMLElement parent, String name)
protected XMLElement requireChildNamed(XMLElement parent, String name)
protected XMLElement requireChildNamed (XMLElement parent, String name) throws CompilerException { XMLElement child = parent.getFirstChildNamed(name); if (child == null) parseError(parent, "<"+parent.getName()+"> requires child <"+name+">"); return child; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
parseError(parent, "<"+parent.getName()+"> requires child <"+name+">");
parseError( parent, "<" + parent.getName() + "> requires child <" + name + ">");
protected XMLElement requireChildNamed (XMLElement parent, String name) throws CompilerException { XMLElement child = parent.getFirstChildNamed(name); if (child == null) parseError(parent, "<"+parent.getName()+"> requires child <"+name+">"); return child; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
protected String requireContent (XMLElement element) throws CompilerException
protected String requireContent(XMLElement element) throws CompilerException
protected String requireContent (XMLElement element) throws CompilerException { String content = element.getContent(); if (content == null || content.length() == 0) parseError(element, "<"+element.getName()+"> requires content"); return content; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
parseError(element, "<"+element.getName()+"> requires content");
parseError(element, "<" + element.getName() + "> requires content");
protected String requireContent (XMLElement element) throws CompilerException { String content = element.getContent(); if (content == null || content.length() == 0) parseError(element, "<"+element.getName()+"> requires content"); return content; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
protected int requireIntAttribute (XMLElement element, String attribute)
protected int requireIntAttribute(XMLElement element, String attribute)
protected int requireIntAttribute (XMLElement element, String attribute) throws CompilerException { String value = element.getAttribute(attribute); if (value == null || value.length() == 0) parseError(element, "<"+element.getName()+"> requires attribute '"+attribute+"'"); try { return Intege...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
parseError(element, "<"+element.getName()+"> requires attribute '"+attribute+"'");
parseError( element, "<" + element.getName() + "> requires attribute '" + attribute + "'");
protected int requireIntAttribute (XMLElement element, String attribute) throws CompilerException { String value = element.getAttribute(attribute); if (value == null || value.length() == 0) parseError(element, "<"+element.getName()+"> requires attribute '"+attribute+"'"); try { return Intege...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
} catch (NumberFormatException x)
} catch (NumberFormatException x)
protected int requireIntAttribute (XMLElement element, String attribute) throws CompilerException { String value = element.getAttribute(attribute); if (value == null || value.length() == 0) parseError(element, "<"+element.getName()+"> requires attribute '"+attribute+"'"); try { return Intege...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
parseError(element, "'"+attribute+"' must be an integer");
parseError(element, "'" + attribute + "' must be an integer");
protected int requireIntAttribute (XMLElement element, String attribute) throws CompilerException { String value = element.getAttribute(attribute); if (value == null || value.length() == 0) parseError(element, "<"+element.getName()+"> requires attribute '"+attribute+"'"); try { return Intege...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
String value = requireAttribute(element,attribute);
String value = requireAttribute(element, attribute);
protected boolean requireYesNoAttribute(XMLElement element, String attribute) throws CompilerException { String value = requireAttribute(element,attribute); if (value.equalsIgnoreCase("yes")) return true; if (value.equalsIgnoreCase("no")) return false; parseError(element, "<"+element.get...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
parseError(element, "<"+element.getName()+"> invalid attribute '"+ attribute+"': Expected (yes|no)");
parseError( element, "<" + element.getName() + "> invalid attribute '" + attribute + "': Expected (yes|no)");
protected boolean requireYesNoAttribute(XMLElement element, String attribute) throws CompilerException { String value = requireAttribute(element,attribute); if (value.equalsIgnoreCase("yes")) return true; if (value.equalsIgnoreCase("no")) return false; parseError(element, "<"+element.get...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
executeCompiler(); } catch (CompilerException ce)
executeCompiler(); } catch (CompilerException ce)
public void run() { try { executeCompiler();// Execute the compiler - may send info to System.out } catch (CompilerException ce) { System.out.println(ce.getMessage()+"\n"); } catch (Exception e) { if (Debug.stackTracing ()) { e.printStackTrace(); } else ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
System.out.println(ce.getMessage()+"\n"); } catch (Exception e)
System.out.println(ce.getMessage() + "\n"); } catch (Exception e)
public void run() { try { executeCompiler();// Execute the compiler - may send info to System.out } catch (CompilerException ce) { System.out.println(ce.getMessage()+"\n"); } catch (Exception e) { if (Debug.stackTracing ()) { e.printStackTrace(); } else ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
if (Debug.stackTracing ())
if (Debug.stackTracing())
public void run() { try { executeCompiler();// Execute the compiler - may send info to System.out } catch (CompilerException ce) { System.out.println(ce.getMessage()+"\n"); } catch (Exception e) { if (Debug.stackTracing ()) { e.printStackTrace(); } else ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
e.printStackTrace(); } else
e.printStackTrace(); } else
public void run() { try { executeCompiler();// Execute the compiler - may send info to System.out } catch (CompilerException ce) { System.out.println(ce.getMessage()+"\n"); } catch (Exception e) { if (Debug.stackTracing ()) { e.printStackTrace(); } else ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
System.out.println ("ERROR: "+e.getMessage ());
System.out.println("ERROR: " + e.getMessage());
public void run() { try { executeCompiler();// Execute the compiler - may send info to System.out } catch (CompilerException ce) { System.out.println(ce.getMessage()+"\n"); } catch (Exception e) { if (Debug.stackTracing ()) { e.printStackTrace(); } else ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
protected boolean validateYesNoAttribute(XMLElement element, String attribute, boolean defaultValue)
protected boolean validateYesNoAttribute( XMLElement element, String attribute, boolean defaultValue)
protected boolean validateYesNoAttribute(XMLElement element, String attribute, boolean defaultValue) { String value = element.getAttribute(attribute, (defaultValue ? "yes" : "no")); if (value.equalsIgnoreCase("yes")) return true; if (value.equalsIgnoreCase("no"...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
String value = element.getAttribute(attribute, (defaultValue ? "yes" : "no"));
String value = element.getAttribute(attribute, (defaultValue ? "yes" : "no"));
protected boolean validateYesNoAttribute(XMLElement element, String attribute, boolean defaultValue) { String value = element.getAttribute(attribute, (defaultValue ? "yes" : "no")); if (value.equalsIgnoreCase("yes")) return true; if (value.equalsIgnoreCase("no"...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
parseWarn(element, "<"+element.getName()+"> invalid attribute '"+ attribute+"': Expected (yes|no) if present");
parseWarn( element, "<" + element.getName() + "> invalid attribute '" + attribute + "': Expected (yes|no) if present");
protected boolean validateYesNoAttribute(XMLElement element, String attribute, boolean defaultValue) { String value = element.getAttribute(attribute, (defaultValue ? "yes" : "no")); if (value.equalsIgnoreCase("yes")) return true; if (value.equalsIgnoreCase("no"...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
public boolean wasSuccessful ()
public boolean wasSuccessful()
public boolean wasSuccessful () { return ! this.compileFailed; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
return ! this.compileFailed;
return !this.compileFailed;
public boolean wasSuccessful () { return ! this.compileFailed; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
String targetFilename = p.targetdir + "/" + f.getName();
String targetFilename = p.targetdir + f.getName(); if('/' != File.separatorChar) { targetFilename = targetFilename.replace(File.separatorChar, '/'); }
public void executeCompiler() throws Exception { // Usefull variables int i; String str; InputStream inStream; // We get the XML data tree XMLElement data = getXMLTree(); // We get the Packager Packager packager = getPackager(); // We add the variable declaration packager.setVariables(g...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/dc93ad3ca91acfb903abd58102b96e9624b50e3b/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java
getClass().getResourceAsStream("/com/izforge/izpack/installer/icons.xml");
InstallerFrame.class.getResourceAsStream("/com/izforge/izpack/installer/icons.xml");
private void loadIcons() throws Exception { // Initialisations icons = new IconsDatabase(); URL url; ImageIcon img; XMLElement icon; InputStream inXML = getClass().getResourceAsStream("/com/izforge/izpack/installer/icons.xml"); // Initialises the parser StdXMLParser parser = new StdXMLPa...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
url = getClass().getResource(icon.getAttribute("res"));
url = InstallerFrame.class.getResource(icon.getAttribute("res"));
private void loadIcons() throws Exception { // Initialisations icons = new IconsDatabase(); URL url; ImageIcon img; XMLElement icon; InputStream inXML = getClass().getResourceAsStream("/com/izforge/izpack/installer/icons.xml"); // Initialises the parser StdXMLParser parser = new StdXMLPa...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
url = getClass().getResource(icon.getAttribute("res"));
url = InstallerFrame.class.getResource(icon.getAttribute("res"));
private void loadIcons() throws Exception { // Initialisations icons = new IconsDatabase(); URL url; ImageIcon img; XMLElement icon; InputStream inXML = getClass().getResourceAsStream("/com/izforge/izpack/installer/icons.xml"); // Initialises the parser StdXMLParser parser = new StdXMLPa...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/InstallerFrame.java/buggy/src/lib/com/izforge/izpack/installer/InstallerFrame.java
String name = null;
String name;
public String depString() { String text = ""; if (dependencies == null) return text; String name = null; for (int i = 0; i < dependencies.size() - 1; i++) { name = (String) dependencies.get(i); text += name + ","; } name = (String) dependenci...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/9619b3a25f43787dc92011111668210e06c00c71/Pack.java/buggy/src/lib/com/izforge/izpack/Pack.java
instances.remove(instances.indexOf(this));
public void run() { try { listener.startUnpack(); String currentOs = System.getProperty("os.name").toLowerCase(); // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executab...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/24ab501f4d8488467fd8b63b1057fcc96217b3bf/Unpacker.java/buggy/src/lib/com/izforge/izpack/installer/Unpacker.java
public JLabel createLabel(String textId, String iconId, int pos)
public JLabel createLabel(String subkey, String alternateClass, String iconId, int pos)
public JLabel createLabel(String textId, String iconId, int pos) { ImageIcon ii = (iconId != null) ? parent.icons.getImageIcon(iconId) : null; JLabel label = LabelFactory.create(parent.langpack.getString(textId), ii, pos); if (label != null) label.setFont(getControlTextFont()); return...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/c8304bd275b449f44187bc3547148189a494456e/IzPanel.java/buggy/src/lib/com/izforge/izpack/installer/IzPanel.java
JLabel label = LabelFactory.create(parent.langpack.getString(textId), ii, pos);
String msg = getI18nStringForClass(subkey, alternateClass); JLabel label = LabelFactory.create(msg, ii, pos);
public JLabel createLabel(String textId, String iconId, int pos) { ImageIcon ii = (iconId != null) ? parent.icons.getImageIcon(iconId) : null; JLabel label = LabelFactory.create(parent.langpack.getString(textId), ii, pos); if (label != null) label.setFont(getControlTextFont()); return...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/c8304bd275b449f44187bc3547148189a494456e/IzPanel.java/buggy/src/lib/com/izforge/izpack/installer/IzPanel.java
if(newlyCreated) { throw new NoSuchElementException("Could not create a validated object"); }
public synchronized Object borrowObject(Object key) throws Exception { long starttime = System.currentTimeMillis(); for(;;) { CursorableLinkedList pool = (CursorableLinkedList)(_poolMap.get(key)); if(null == pool) { pool = new CursorableLinkedList(); ...
50977 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50977/feea8a0d3c7e4912fe7929bd4f393db752cfaacf/GenericKeyedObjectPool.java/clean/src/java/org/apache/commons/pool/impl/GenericKeyedObjectPool.java
if (item != null) item.trim();
if (item != null) item = item.trim();
public String getResult () { String item = (String)this.pathComboBox.getSelectedItem (); if (item != null) item.trim(); String path = item; File f = new File (item); if (! f.isDirectory ()) { path = f.getParent (); } // path now contains the final content of the combo box if (...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/UserInputPanel.java/clean/src/lib/com/izforge/izpack/panels/UserInputPanel.java
MessageFormat.format (parent.langpack.getString ("UserInputPanel.search.location"),
MessageFormat.format (parentFrame.langpack.getString ("UserInputPanel.search.location"),
private void addSearch (XMLElement spec) { Vector forPacks = spec.getChildrenNamed (PACKS); Vector forOs = spec.getChildrenNamed(OS); XMLElement element = spec.getFirstChildNamed (SPEC); String variable = spec.getAttribute (VARIABLE); String filename = null; String...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/UserInputPanel.java/clean/src/lib/com/izforge/izpack/panels/UserInputPanel.java
MessageFormat.format (parent.langpack.getString ("UserInputPanel.search.location.checkedfile"),
MessageFormat.format (parentFrame.langpack.getString ("UserInputPanel.search.location.checkedfile"),
private void addSearch (XMLElement spec) { Vector forPacks = spec.getChildrenNamed (PACKS); Vector forOs = spec.getChildrenNamed(OS); XMLElement element = spec.getFirstChildNamed (SPEC); String variable = spec.getAttribute (VARIABLE); String filename = null; String...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/UserInputPanel.java/clean/src/lib/com/izforge/izpack/panels/UserInputPanel.java
JButton autodetectButton = ButtonFactory.createButton (parent.langpack.getString ("UserInputPanel.search.autodetect"), idata.buttonsHColor);
JButton autodetectButton = ButtonFactory.createButton (parentFrame.langpack.getString ("UserInputPanel.search.autodetect"), idata.buttonsHColor);
private void addSearch (XMLElement spec) { Vector forPacks = spec.getChildrenNamed (PACKS); Vector forOs = spec.getChildrenNamed(OS); XMLElement element = spec.getFirstChildNamed (SPEC); String variable = spec.getAttribute (VARIABLE); String filename = null; String...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/UserInputPanel.java/clean/src/lib/com/izforge/izpack/panels/UserInputPanel.java
autodetectButton.setToolTipText (parent.langpack.getString ("UserInputPanel.search.autodetect.tooltip"));
autodetectButton.setToolTipText (parentFrame.langpack.getString ("UserInputPanel.search.autodetect.tooltip"));
private void addSearch (XMLElement spec) { Vector forPacks = spec.getChildrenNamed (PACKS); Vector forOs = spec.getChildrenNamed(OS); XMLElement element = spec.getFirstChildNamed (SPEC); String variable = spec.getAttribute (VARIABLE); String filename = null; String...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/UserInputPanel.java/clean/src/lib/com/izforge/izpack/panels/UserInputPanel.java
JButton browseButton = ButtonFactory.createButton (parent.langpack.getString ("UserInputPanel.search.browse"), idata.buttonsHColor);
JButton browseButton = ButtonFactory.createButton (parentFrame.langpack.getString ("UserInputPanel.search.browse"), idata.buttonsHColor);
private void addSearch (XMLElement spec) { Vector forPacks = spec.getChildrenNamed (PACKS); Vector forOs = spec.getChildrenNamed(OS); XMLElement element = spec.getFirstChildNamed (SPEC); String variable = spec.getAttribute (VARIABLE); String filename = null; String...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/UserInputPanel.java/clean/src/lib/com/izforge/izpack/panels/UserInputPanel.java
searchFields.add (new SearchField (filename, check_filename, parent, combobox, autodetectButton, browseButton, search_type, result_type));
searchFields.add (new SearchField (filename, check_filename, parentFrame, combobox, autodetectButton, browseButton, search_type, result_type));
private void addSearch (XMLElement spec) { Vector forPacks = spec.getChildrenNamed (PACKS); Vector forOs = spec.getChildrenNamed(OS); XMLElement element = spec.getFirstChildNamed (SPEC); String variable = spec.getAttribute (VARIABLE); String filename = null; String...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/UserInputPanel.java/clean/src/lib/com/izforge/izpack/panels/UserInputPanel.java
uiElement [POS_DISPLAYED] = new Boolean (true);
uiElement [POS_DISPLAYED] = Boolean.valueOf(true);
private void buildUI () { Object [] uiElement; for (int i = 0; i < uiElements.size (); i++) { uiElement = (Object [])uiElements.elementAt (i); if (itemRequiredFor ((Vector)uiElement [POS_PACKS]) && itemRequiredForOs((Vector) uiElement[POS_OS]) ) { try { if (uiElement [PO...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/UserInputPanel.java/clean/src/lib/com/izforge/izpack/panels/UserInputPanel.java
uiElement [POS_DISPLAYED] = new Boolean (false);
uiElement [POS_DISPLAYED] = Boolean.valueOf(false);
private void buildUI () { Object [] uiElement; for (int i = 0; i < uiElements.size (); i++) { uiElement = (Object [])uiElements.elementAt (i); if (itemRequiredFor ((Vector)uiElement [POS_PACKS]) && itemRequiredForOs((Vector) uiElement[POS_OS]) ) { try { if (uiElement [PO...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/UserInputPanel.java/clean/src/lib/com/izforge/izpack/panels/UserInputPanel.java
JOptionPane.showMessageDialog (parent,
JOptionPane.showMessageDialog (parentFrame,
private boolean readPasswordField (Object [] field) { PasswordGroup group = null; String variable = null; String message = null; try { group = (PasswordGroup)field [POS_GROUP]; variable = (String)field [POS_VARIABLE]; message = (String)field...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/UserInputPanel.java/clean/src/lib/com/izforge/izpack/panels/UserInputPanel.java
parent.langpack.getString ("UserInputPanel.error.caption"),
parentFrame.langpack.getString ("UserInputPanel.error.caption"),
private boolean readPasswordField (Object [] field) { PasswordGroup group = null; String variable = null; String message = null; try { group = (PasswordGroup)field [POS_GROUP]; variable = (String)field [POS_VARIABLE]; message = (String)field...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/UserInputPanel.java/clean/src/lib/com/izforge/izpack/panels/UserInputPanel.java
JOptionPane.showMessageDialog (parent,
JOptionPane.showMessageDialog (parentFrame,
private boolean readRuleField (Object [] field) { RuleInputField ruleField = null; String variable = null; try { ruleField = (RuleInputField)field [POS_FIELD]; variable = (String)field [POS_VARIABLE]; } catch (Throwable exception) { return (true); } if ((variable...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/UserInputPanel.java/clean/src/lib/com/izforge/izpack/panels/UserInputPanel.java
parent.langpack.getString ("UserInputPanel.error.caption"),
parentFrame.langpack.getString ("UserInputPanel.error.caption"),
private boolean readRuleField (Object [] field) { RuleInputField ruleField = null; String variable = null; try { ruleField = (RuleInputField)field [POS_FIELD]; variable = (String)field [POS_VARIABLE]; } catch (Throwable exception) { return (true); } if ((variable...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/UserInputPanel.java/clean/src/lib/com/izforge/izpack/panels/UserInputPanel.java
input = parent.getResource (SPEC_FILE_NAME);
input = parentFrame.getResource (SPEC_FILE_NAME);
private void readSpec () throws Exception { InputStream input = null; XMLElement data; Vector specElements; String attribute; String instance = Integer.toString (instanceNumber); try { input = parent.getResource (SPEC_FILE_NAME); } catch (Exception exception) { ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/08ecc635ba8049aeb419722893f373a4a7f99a77/UserInputPanel.java/clean/src/lib/com/izforge/izpack/panels/UserInputPanel.java
int n = idata.availablePacks.indexOf(packs.get(i));
int n = idata.allPacks.indexOf(packs.get(i));
public void run() { instances.add(this); try { listener.startUnpack(); String currentOs = System.getProperty("os.name").toLowerCase(); // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); Li...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/c3234416ca8408295e1d45c60daee2efe9c3f5db/Unpacker.java/buggy/src/lib/com/izforge/izpack/installer/Unpacker.java
if (null == pf.os || currentOs.indexOf(pf.os.toLowerCase()) > -1)
if (null == pf.os || matchOS(currentOs, pf.os.toLowerCase()))
public void run() { instances.add(this); try { listener.startUnpack(); String currentOs = System.getProperty("os.name").toLowerCase(); // // Initialisations FileOutputStream out = null; ArrayList parsables = new ArrayList(); ArrayList executables = new ArrayList(); Li...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/c3234416ca8408295e1d45c60daee2efe9c3f5db/Unpacker.java/buggy/src/lib/com/izforge/izpack/installer/Unpacker.java
public CompilationJob (CompileHandler listener, LocaleDatabase langpack, ArrayList files, ArrayList classpath)
public CompilationJob( CompileHandler listener, LocaleDatabase langpack, ArrayList files, ArrayList classpath)
public CompilationJob (CompileHandler listener, LocaleDatabase langpack, ArrayList files, ArrayList classpath) { this.listener = listener; this.langpack = langpack; this.name = null; this.files = files; this.classpath = classpath; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
public CompileResult checkCompiler (String compiler, ArrayList arguments)
public CompileResult checkCompiler(String compiler, ArrayList arguments)
public CompileResult checkCompiler (String compiler, ArrayList arguments) { int retval = 0; FileExecutor executor = new FileExecutor (); String[] output = new String[2]; Debug.trace ("checking whether \"" + compiler + " -help\" works"); { String[] args = { compiler, "-help" }; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
FileExecutor executor = new FileExecutor ();
FileExecutor executor = new FileExecutor();
public CompileResult checkCompiler (String compiler, ArrayList arguments) { int retval = 0; FileExecutor executor = new FileExecutor (); String[] output = new String[2]; Debug.trace ("checking whether \"" + compiler + " -help\" works"); { String[] args = { compiler, "-help" }; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
Debug.trace ("checking whether \"" + compiler + " -help\" works");
Debug.trace("checking whether \"" + compiler + " -help\" works");
public CompileResult checkCompiler (String compiler, ArrayList arguments) { int retval = 0; FileExecutor executor = new FileExecutor (); String[] output = new String[2]; Debug.trace ("checking whether \"" + compiler + " -help\" works"); { String[] args = { compiler, "-help" }; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
retval = executor.executeCommand (args, output);
retval = executor.executeCommand(args, output);
public CompileResult checkCompiler (String compiler, ArrayList arguments) { int retval = 0; FileExecutor executor = new FileExecutor (); String[] output = new String[2]; Debug.trace ("checking whether \"" + compiler + " -help\" works"); { String[] args = { compiler, "-help" }; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error.compilernotfound"), args, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue ())
CompileResult result = new CompileResult( this.langpack.getString("CompilePanel.error.compilernotfound"), args, output[0], output[1]); this.listener.handleCompileError(result); if (!result.isContinue())
public CompileResult checkCompiler (String compiler, ArrayList arguments) { int retval = 0; FileExecutor executor = new FileExecutor (); String[] output = new String[2]; Debug.trace ("checking whether \"" + compiler + " -help\" works"); { String[] args = { compiler, "-help" }; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
Debug.trace ("checking whether \"" + compiler + " -help +arguments\" works");
Debug.trace( "checking whether \"" + compiler + " -help +arguments\" works");
public CompileResult checkCompiler (String compiler, ArrayList arguments) { int retval = 0; FileExecutor executor = new FileExecutor (); String[] output = new String[2]; Debug.trace ("checking whether \"" + compiler + " -help\" works"); { String[] args = { compiler, "-help" }; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
args.add (0, "-help");
args.add(0, "-help");
public CompileResult checkCompiler (String compiler, ArrayList arguments) { int retval = 0; FileExecutor executor = new FileExecutor (); String[] output = new String[2]; Debug.trace ("checking whether \"" + compiler + " -help\" works"); { String[] args = { compiler, "-help" }; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
args.add (0, compiler);
args.add(0, compiler);
public CompileResult checkCompiler (String compiler, ArrayList arguments) { int retval = 0; FileExecutor executor = new FileExecutor (); String[] output = new String[2]; Debug.trace ("checking whether \"" + compiler + " -help\" works"); { String[] args = { compiler, "-help" }; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
while (cp_it.hasNext ())
while (cp_it.hasNext())
public CompileResult checkCompiler (String compiler, ArrayList arguments) { int retval = 0; FileExecutor executor = new FileExecutor (); String[] output = new String[2]; Debug.trace ("checking whether \"" + compiler + " -help\" works"); { String[] args = { compiler, "-help" }; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
String cp = (String)cp_it.next();
String cp = (String) cp_it.next();
public CompileResult checkCompiler (String compiler, ArrayList arguments) { int retval = 0; FileExecutor executor = new FileExecutor (); String[] output = new String[2]; Debug.trace ("checking whether \"" + compiler + " -help\" works"); { String[] args = { compiler, "-help" }; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
classpath_sb.append (File.pathSeparatorChar); classpath_sb.append (new File (cp).getAbsolutePath());
classpath_sb.append(File.pathSeparatorChar); classpath_sb.append(new File(cp).getAbsolutePath());
public CompileResult checkCompiler (String compiler, ArrayList arguments) { int retval = 0; FileExecutor executor = new FileExecutor (); String[] output = new String[2]; Debug.trace ("checking whether \"" + compiler + " -help\" works"); { String[] args = { compiler, "-help" }; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
String classpath_str = classpath_sb.toString ();
String classpath_str = classpath_sb.toString();
public CompileResult checkCompiler (String compiler, ArrayList arguments) { int retval = 0; FileExecutor executor = new FileExecutor (); String[] output = new String[2]; Debug.trace ("checking whether \"" + compiler + " -help\" works"); { String[] args = { compiler, "-help" }; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
args.add ("-classpath"); args.add (classpath_str);
args.add("-classpath"); args.add(classpath_str);
public CompileResult checkCompiler (String compiler, ArrayList arguments) { int retval = 0; FileExecutor executor = new FileExecutor (); String[] output = new String[2]; Debug.trace ("checking whether \"" + compiler + " -help\" works"); { String[] args = { compiler, "-help" }; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
String[] args_arr = (String[])args.toArray(output);
String[] args_arr = (String[]) args.toArray(output);
public CompileResult checkCompiler (String compiler, ArrayList arguments) { int retval = 0; FileExecutor executor = new FileExecutor (); String[] output = new String[2]; Debug.trace ("checking whether \"" + compiler + " -help\" works"); { String[] args = { compiler, "-help" }; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
retval = executor.executeCommand (args_arr, output);
retval = executor.executeCommand(args_arr, output);
public CompileResult checkCompiler (String compiler, ArrayList arguments) { int retval = 0; FileExecutor executor = new FileExecutor (); String[] output = new String[2]; Debug.trace ("checking whether \"" + compiler + " -help\" works"); { String[] args = { compiler, "-help" }; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error.invalidarguments"), args_arr, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue ())
CompileResult result = new CompileResult( this.langpack.getString("CompilePanel.error.invalidarguments"), args_arr, output[0], output[1]); this.listener.handleCompileError(result); if (!result.isContinue())
public CompileResult checkCompiler (String compiler, ArrayList arguments) { int retval = 0; FileExecutor executor = new FileExecutor (); String[] output = new String[2]; Debug.trace ("checking whether \"" + compiler + " -help\" works"); { String[] args = { compiler, "-help" }; ...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
public String getName ()
public String getName()
public String getName () { if (this.name != null) return this.name; return ""; }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
public int getSize ()
public int getSize()
public int getSize () { return this.files.size(); }
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
public CompileResult perform (String compiler, ArrayList arguments)
public CompileResult perform(String compiler, ArrayList arguments)
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(a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
Debug.trace ("starting job " + this.name);
Debug.trace("starting job " + this.name);
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(a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
while (arg_it.hasNext ()) cmdline_len += ((String)arg_it.next()).length()+1;
while (arg_it.hasNext()) cmdline_len += ((String) arg_it.next()).length() + 1;
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(a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
args.add (0, compiler); cmdline_len += compiler.length()+1;
args.add(0, compiler); cmdline_len += compiler.length() + 1;
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(a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
while (cp_it.hasNext ())
while (cp_it.hasNext())
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(a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
String cp = (String)cp_it.next();
String cp = (String) cp_it.next();
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(a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
classpath_sb.append (File.pathSeparatorChar); classpath_sb.append (new File (cp).getAbsolutePath());
classpath_sb.append(File.pathSeparatorChar); classpath_sb.append(new File(cp).getAbsolutePath());
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(a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
String classpath_str = classpath_sb.toString ();
String classpath_str = classpath_sb.toString();
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(a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
args.add ("-classpath");
args.add("-classpath");
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(a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
args.add (classpath_str); cmdline_len += classpath_str.length()+1;
args.add(classpath_str); cmdline_len += classpath_str.length() + 1;
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(a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
FileExecutor executor = new FileExecutor ();
FileExecutor executor = new FileExecutor();
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(a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
File f = (File)file_it.next();
File f = (File) file_it.next();
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(a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
Debug.trace ("processing "+fpath);
Debug.trace("processing " + fpath);
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(a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
args.add (fpath);
args.add(fpath);
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(a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
Debug.trace ("compiling " + jobfiles);
Debug.trace("compiling " + jobfiles);
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(a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
this.listener.progress (last_fileno, jobfiles);
this.listener.progress(last_fileno, jobfiles);
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(a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
String[] full_cmdline = (String[])args.toArray (output);
String[] full_cmdline = (String[]) args.toArray(output);
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(a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
int retval = executor.executeCommand (full_cmdline, output);
int retval = executor.executeCommand(full_cmdline, output);
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(a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
this.listener.progress (fileno, jobfiles);
this.listener.progress(fileno, jobfiles);
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(a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java
CompileResult result = new CompileResult (this.langpack.getString ("CompilePanel.error"), full_cmdline, output[0], output[1]); this.listener.handleCompileError (result); if (! result.isContinue())
CompileResult result = new CompileResult( this.langpack.getString("CompilePanel.error"), full_cmdline, output[0], output[1]); this.listener.handleCompileError(result); if (!result.isContinue())
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(a...
54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/CompileWorker.java/clean/src/lib/com/izforge/izpack/installer/CompileWorker.java