rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
throw new CompilerException ("target for file " + src + " missing!");
throw new CompilerException("target for file " + src + " missing!");
public void setTargetFile (String targetFile) throws CompilerException { this.targetdir = null; if (targetFile == null) { if (this.src != null) throw new CompilerException ("target for file " + src + " missing!"); else throw new CompilerException ("target for file m...
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 ("target for file missing!");
throw new CompilerException("target for file missing!");
public void setTargetFile (String targetFile) throws CompilerException { this.targetdir = null; if (targetFile == null) { if (this.src != null) throw new CompilerException ("target for file " + src + " missing!"); else throw new CompilerException ("target for file m...
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 "[PackSource file: '"+src+"' with path '"+targetdir+"']"; }
{ return "[PackSource file: '" + src + "' with path '" + targetdir + "']"; }
public String toString() { return "[PackSource file: '"+src+"' with path '"+targetdir+"']"; }
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 Compiler(String filename, String basedir, String kind, String output) { // Default initialisation this.filename = filename; this.basedir = basedir; this.kind = kind; this.output = output; // Creates a temporary temp file for keeping empty directories try { keepDirFile = File.creat...
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 addFile(File file, String relPath, List osList, int override, ArrayList list) throws CompilerException
protected void addFile( File file, String relPath, List osList, int override, ArrayList list) throws CompilerException
protected void addFile(File file, String relPath, List osList, int override, ArrayList list) throws CompilerException { // We check if 'file' is correct if (!file.exists()) throw new CompilerException(file.toString() + " does not exist"); // Recursive part if (file.isDirector...
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
protected void addFile(File file, String relPath, List osList, int override, ArrayList list) throws CompilerException { // We check if 'file' is correct if (!file.exists()) throw new CompilerException(file.toString() + " does not exist"); // Recursive part if (file.isDirector...
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
nf.setTargetDir (relPath);
nf.setTargetDir(relPath);
protected void addFile(File file, String relPath, List osList, int override, ArrayList list) throws CompilerException { // We check if 'file' is correct if (!file.exists()) throw new CompilerException(file.toString() + " does not exist"); // Recursive part if (file.isDirector...
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
debug("Adding file: "+ nf.toString());
debug("Adding file: " + nf.toString());
protected void addFile(File file, String relPath, List osList, int override, ArrayList list) throws CompilerException { // We check if 'file' is correct if (!file.exists()) throw new CompilerException(file.toString() + " does not exist"); // Recursive part if (file.isDirector...
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 addFileSet(String path, String[] includes, String[] excludes, String relPath, List osList, ArrayList list, boolean casesensitive, int override) throws CompilerException
protected void addFileSet( String path, String[] includes, String[] excludes, String relPath, List osList, ArrayList list, boolean casesensitive, int override) throws CompilerException
protected void addFileSet(String path, String[] includes, String[] excludes, String relPath, List osList, ArrayList list, boolean casesensitive, int override) throws CompilerException { File test = new File(path); if (test.isDirectory()) { Dire...
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 addFileSet(String path, String[] includes, String[] excludes, String relPath, List osList, ArrayList list, boolean casesensitive, int override) throws CompilerException { File test = new File(path); if (test.isDirectory()) { Dire...
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 addFileSet(String path, String[] includes, String[] excludes, String relPath, List osList, ArrayList list, boolean casesensitive, int override) throws CompilerException { File test = new File(path); if (test.isDirectory()) { Dire...
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 addFileSet(String path, String[] includes, String[] excludes, String relPath, List osList, ArrayList list, boolean casesensitive, int override) throws CompilerException { File test = new File(path); if (test.isDirectory()) { Dire...
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 throw new CompilerException("\"dir\" attribute of fileset is not valid: " + path);
} else throw new CompilerException( "\"dir\" attribute of fileset is not valid: " + path);
protected void addFileSet(String path, String[] includes, String[] excludes, String relPath, List osList, ArrayList list, boolean casesensitive, int override) throws CompilerException { File test = new File(path); if (test.isDirectory()) { Dire...
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 addSingleFile(File file, String targetFile, List osList, int override, ArrayList list) throws CompilerException
protected void addSingleFile( File file, String targetFile, List osList, int override, ArrayList list) throws CompilerException
protected void addSingleFile(File file, String targetFile, List osList, int override, ArrayList list) throws CompilerException { //System.out.println ("adding single file " + file.getName() + " as " + targetFile); PackSource nf = new PackSource(); nf.src = file.getAbsolutePath(); ...
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
nf.setTargetFile (targetFile);
nf.setTargetFile(targetFile);
protected void addSingleFile(File file, String targetFile, List osList, int override, ArrayList list) throws CompilerException { //System.out.println ("adding single file " + file.getName() + " as " + targetFile); PackSource nf = new PackSource(); nf.src = file.getAbsolutePath(); ...
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.tracing()) { packagerListener.packagerMsg(s); }
if (Debug.tracing()) { packagerListener.packagerMsg(s); }
private void debug(String s) { if (Debug.tracing())//if you are wondering what files gets added to the installer { packagerListener.packagerMsg(s); } }
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 (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base);
if (!base.canRead() || !base.isDirectory()) throw new CompilerException("Invalid base directory: " + base);
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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
inStream = getClass().getResourceAsStream("/bin/langpacks/installer/"+str+".xml");
inStream = getClass().getResourceAsStream( "/bin/langpacks/installer/" + str + ".xml");
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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
inStream = new FileInputStream(Compiler.IZPACK_HOME + "bin" + File.separator + "langpacks" + File.separator + "installer" + File.separator + str + ".xml");
inStream = new FileInputStream( Compiler.IZPACK_HOME + "bin" + File.separator + "langpacks" + File.separator + "installer" + File.separator + str + ".xml");
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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
inStream = getClass ().getResourceAsStream("/bin/langpacks/flags/"+str+".gif");
inStream = getClass().getResourceAsStream("/bin/langpacks/flags/" + str + ".gif");
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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
inStream = new FileInputStream(Compiler.IZPACK_HOME + "bin" + File.separator + "langpacks" + File.separator + "flags" + File.separator + str + ".gif");
inStream = new FileInputStream( Compiler.IZPACK_HOME + "bin" + File.separator + "langpacks" + File.separator + "flags" + File.separator + str + ".gif");
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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
inStream.close ();
inStream.close();
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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.err.println("ERROR: cannot parse resource from stream. (Internal error.)");
System.err.println( "ERROR: cannot parse resource from stream. (Internal error.)");
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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 void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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
File parsedFile = File.createTempFile("izpp", null, resFile.getParentFile());
File parsedFile = File.createTempFile("izpp", null, resFile.getParentFile());
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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 { System.err.println("ERROR: no variable is defined. " + res.src + " is not parsed.");
} else { System.err.println( "ERROR: no variable is defined. " + res.src + " is not parsed.");
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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
inStream.close (); } } else
inStream.close(); } } else
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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 void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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
inStream.close ();
inStream.close();
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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
Panel p = (Panel)iter.next();
Panel p = (Panel) iter.next();
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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 void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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 void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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
InputStream jarInStream = getClass().getResourceAsStream("/bin/panels/"+str+".jar");
InputStream jarInStream = getClass().getResourceAsStream("/bin/panels/" + str + ".jar");
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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
panel_is = new JarInputStream (jarInStream); } catch (IOException e)
panel_is = new JarInputStream(jarInStream); } catch (IOException e)
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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
panel_is = null; }
panel_is = null; }
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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 (panelsCache.contains(str)) continue;
{ if (panelsCache.contains(str)) continue;
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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 void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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
packager.addPanelClass(entry.getName(), panel_is); } else { File dir = new File(Compiler.IZPACK_HOME + "bin" + File.separator + "panels" + File.separator + str);
packager.addPanelClass(entry.getName(), panel_is); } else { File dir = new File( Compiler.IZPACK_HOME + "bin" + File.separator + "panels" + File.separator + str);
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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 (panelsCache.contains(str)) continue;
if (panelsCache.contains(str)) continue;
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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
Map storedFiles = new HashMap();
Map storedFiles = new HashMap();
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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
ZipOutputStream zipOut = packager.addPack(i, pack.name, pack.osConstraints, pack.required, pack.description, pack.preselected); zipOut.flush(); ByteCountingOutputStream dos = new ByteCountingOutputStream(zipOut);
ZipOutputStream zipOut = packager.addPack( i, pack.name, pack.osConstraints, pack.required, pack.description, pack.preselected); zipOut.flush(); ByteCountingOutputStream dos = new ByteCountingOutputStream(zipOut);
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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.getTargetFilename ();
String targetFilename = p.getTargetFilename();
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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('/' != File.separatorChar) { targetFilename = targetFilename.replace(File.separatorChar, '/');
if ('/' != File.separatorChar) { targetFilename = targetFilename.replace(File.separatorChar, '/');
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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
PackFile pf = new PackFile(targetFilename, p.osConstraints, nbytes, mtime, p.override); long[] info = (long[])storedFiles.get(p.src); boolean addFile = true; if (info != null && packager.allowPackFileBackReferences()) { pf.setPreviousPackFileRef((int)info[0],info[1]); addFile = false; }
PackFile pf = new PackFile( targetFilename, p.osConstraints, nbytes, mtime, p.override); long[] info = (long[]) storedFiles.get(p.src); boolean addFile = true; if (info != null && packager.allowPackFileBackReferences()) { pf.setPreviousPackFileRef((int) info[0], info[1]); addFile = false; }
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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
objOut.flush(); long pos = dos.getByteCount(); if (addFile) { byte[] buffer = new byte[5120]; long bytesWritten = 0; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { objOut.write(buffer, 0, bytesInBuffer); bytesWritten += bytesInBuffer; } if (bytesWritten != nbytes) throw new IOException ("File size...
objOut.flush(); long pos = dos.getByteCount(); if (addFile) { byte[] buffer = new byte[5120]; long bytesWritten = 0; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { objOut.write(buffer, 0, bytesInBuffer); bytesWritten += bytesInBuffer; } if (bytesWritten != nbytes) throw new IOException("File size ...
public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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 void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull varia...
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 GUIPrefs getGUIPrefs(XMLElement data) throws CompilerException { // We get the XMLElement & the values XMLElement gp = data.getFirstChildNamed("guiprefs"); Integer integer; GUIPrefs p = new GUIPrefs(); if (gp == null) return p; p.resizable = requireYesNoAttribute(gp, "resizable")...
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 GUIPrefs getGUIPrefs(XMLElement data) throws CompilerException { // We get the XMLElement & the values XMLElement gp = data.getFirstChildNamed("guiprefs"); Integer integer; GUIPrefs p = new GUIPrefs(); if (gp == null) return p; p.resizable = requireYesNoAttribute(gp, "resizable")...
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
XMLElement uninstallInfo = root.getFirstChildNamed ("uninstaller");
XMLElement uninstallInfo = root.getFirstChildNamed("uninstaller");
protected Info getInfo(XMLElement data) throws Exception { // Initialisation Info info = new Info(); XMLElement root = requireChildNamed(data, "info"); info.setAppName(requireContent(requireChildNamed(root, "appname"))); info.setAppVersion(requireContent(requireChildNamed(root, "appversion"))); inf...
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
info.setWriteUninstaller(validateYesNoAttribute(uninstallInfo, "write", YES));
info.setWriteUninstaller( validateYesNoAttribute(uninstallInfo, "write", YES));
protected Info getInfo(XMLElement data) throws Exception { // Initialisation Info info = new Info(); XMLElement root = requireChildNamed(data, "info"); info.setAppName(requireContent(requireChildNamed(root, "appname"))); info.setAppVersion(requireContent(requireChildNamed(root, "appversion"))); inf...
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 ArrayList getLangpacksCodes(XMLElement data) throws CompilerException
protected ArrayList getLangpacksCodes(XMLElement data) throws CompilerException
protected ArrayList getLangpacksCodes(XMLElement data) throws CompilerException { // Initialisation ArrayList langpacks = new ArrayList(); XMLElement locals = requireChildNamed(data, "locale"); // We process each langpack markup Iterator iter = locals.getChildrenNamed("langpack").iterator(); while ...
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 (locals, "<locale> requires a <langpack>");
parseError(locals, "<locale> requires a <langpack>");
protected ArrayList getLangpacksCodes(XMLElement data) throws CompilerException { // Initialisation ArrayList langpacks = new ArrayList(); XMLElement locals = requireChildNamed(data, "locale"); // We process each langpack markup Iterator iter = locals.getChildrenNamed("langpack").iterator(); while ...
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
nat.path = IZPACK_HOME + "bin" + File.separator + "native" + File.separator + el.getAttribute("type") + File.separator + el.getAttribute("name");
nat.path = IZPACK_HOME + "bin" + File.separator + "native" + File.separator + el.getAttribute("type") + File.separator + el.getAttribute("name");
protected ArrayList getNativeLibraries(XMLElement data) throws Exception { // Initialisation ArrayList natives = new ArrayList(); Vector v = data.getChildrenNamed("native"); // We add each native lib path to the list Iterator iter = v.iterator(); while (iter.hasNext()) { XMLElement el = (XM...
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 getOverrideValue (XMLElement f)
protected int getOverrideValue(XMLElement f)
protected int getOverrideValue (XMLElement f) { int override = PackSource.OVERRIDE_UPDATE; String override_val = f.getAttribute("override"); if (override_val != null) { if (override_val.equalsIgnoreCase("true")) { override = PackSource.OVERRIDE_TRUE; } else if (override_val.equ...
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 if (override_val.equalsIgnoreCase("false"))
} else if (override_val.equalsIgnoreCase("false"))
protected int getOverrideValue (XMLElement f) { int override = PackSource.OVERRIDE_UPDATE; String override_val = f.getAttribute("override"); if (override_val != null) { if (override_val.equalsIgnoreCase("true")) { override = PackSource.OVERRIDE_TRUE; } else if (override_val.equ...
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 if (override_val.equalsIgnoreCase("asktrue"))
} else if (override_val.equalsIgnoreCase("asktrue"))
protected int getOverrideValue (XMLElement f) { int override = PackSource.OVERRIDE_UPDATE; String override_val = f.getAttribute("override"); if (override_val != null) { if (override_val.equalsIgnoreCase("true")) { override = PackSource.OVERRIDE_TRUE; } else if (override_val.equ...
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 if (override_val.equalsIgnoreCase("askfalse"))
} else if (override_val.equalsIgnoreCase("askfalse"))
protected int getOverrideValue (XMLElement f) { int override = PackSource.OVERRIDE_UPDATE; String override_val = f.getAttribute("override"); if (override_val != null) { if (override_val.equalsIgnoreCase("true")) { override = PackSource.OVERRIDE_TRUE; } else if (override_val.equ...
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 if (override_val.equalsIgnoreCase("update"))
} else if (override_val.equalsIgnoreCase("update"))
protected int getOverrideValue (XMLElement f) { int override = PackSource.OVERRIDE_UPDATE; String override_val = f.getAttribute("override"); if (override_val != null) { if (override_val.equalsIgnoreCase("true")) { override = PackSource.OVERRIDE_TRUE; } else if (override_val.equ...
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 if (kind.equalsIgnoreCase(STANDARD_KUNSTSTOFF))
else if (kind.equalsIgnoreCase(STANDARD_KUNSTSTOFF))
protected Packager getPackager() throws Exception { if (kind.equalsIgnoreCase(STANDARD)) return new StdPackager(output, packagerListener); else if (kind.equalsIgnoreCase(STANDARD_KUNSTSTOFF)) return new StdKunststoffPackager(output, packagerListener); else if (kind.equalsIgnoreCase(WEB))...
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 if (kind.equalsIgnoreCase(WEB))
else if (kind.equalsIgnoreCase(WEB))
protected Packager getPackager() throws Exception { if (kind.equalsIgnoreCase(STANDARD)) return new StdPackager(output, packagerListener); else if (kind.equalsIgnoreCase(STANDARD_KUNSTSTOFF)) return new StdKunststoffPackager(output, packagerListener); else if (kind.equalsIgnoreCase(WEB))...
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 if (kind.equalsIgnoreCase(WEB_KUNSTSTOFF))
else if (kind.equalsIgnoreCase(WEB_KUNSTSTOFF))
protected Packager getPackager() throws Exception { if (kind.equalsIgnoreCase(STANDARD)) return new StdPackager(output, packagerListener); else if (kind.equalsIgnoreCase(STANDARD_KUNSTSTOFF)) return new StdKunststoffPackager(output, packagerListener); else if (kind.equalsIgnoreCase(WEB))...
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
pack.osConstraints = OsConstraint.getOsList (el);
pack.osConstraints = OsConstraint.getOsList(el);
protected ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator...
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
XMLElement p = (XMLElement) iter.next(); String targetFile = requireAttribute(p, "targetfile"); List osList = OsConstraint.getOsList (p); pack.parsables.add (new ParsableFile(targetFile, p.getAttribute("type", "plain"), p.getAttribute("encoding", null), osList));
XMLElement p = (XMLElement) iter.next(); String targetFile = requireAttribute(p, "targetfile"); List osList = OsConstraint.getOsList(p); pack.parsables.add( new ParsableFile( targetFile, p.getAttribute("type", "plain"), p.getAttribute("encoding", null), osList));
protected ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator...
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
XMLElement e = (XMLElement) iter.next(); int executeOn = ExecutableFile.NEVER; val = e.getAttribute("stage", "never"); if ("postinstall".equalsIgnoreCase(val)) executeOn = ExecutableFile.POSTINSTALL; else if ("uninstall".equalsIgnoreCase(val)) executeOn = ExecutableFile.UNINSTALL; String executeClass = e.getAttribu...
XMLElement e = (XMLElement) iter.next(); int executeOn = ExecutableFile.NEVER; val = e.getAttribute("stage", "never"); if ("postinstall".equalsIgnoreCase(val)) executeOn = ExecutableFile.POSTINSTALL; else if ("uninstall".equalsIgnoreCase(val)) executeOn = ExecutableFile.UNINSTALL; String executeClass = e.getAttribu...
protected ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator...
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
int override = getOverrideValue (f); List osList = OsConstraint.getOsList (f); String targetdir_attr = requireAttribute (f, "targetdir");
int override = getOverrideValue(f); List osList = OsConstraint.getOsList(f); String targetdir_attr = requireAttribute(f, "targetdir");
protected ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator...
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
addFile(file, targetdir_attr, osList, override, pack.packFiles); } catch (CompilerException x)
addFile(file, targetdir_attr, osList, override, pack.packFiles); } catch (CompilerException x)
protected ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator...
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 src_attr = requireAttribute (f, "src");
String src_attr = requireAttribute(f, "src");
protected ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator...
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 (new File (src_attr).isAbsolute ())
if (new File(src_attr).isAbsolute())
protected ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator...
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
int override = getOverrideValue (f); List osList = OsConstraint.getOsList (f); String target_attr = requireAttribute (f, "target");
int override = getOverrideValue(f); List osList = OsConstraint.getOsList(f); String target_attr = requireAttribute(f, "target");
protected ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator...
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
addSingleFile(file, target_attr, osList, override, pack.packFiles); } catch (CompilerException x)
addSingleFile(file, target_attr, osList, override, pack.packFiles); } catch (CompilerException x)
protected ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator...
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 dir_attr = requireAttribute (f, "dir");
String dir_attr = requireAttribute(f, "dir");
protected ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator...
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
int override = getOverrideValue (f);
int override = getOverrideValue(f);
protected ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator...
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
List osList = OsConstraint.getOsList (f); try { addFileSet(path, includes, excludes,
List osList = OsConstraint.getOsList(f); try { addFileSet( path, includes, excludes,
protected ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator...
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 (CompilerException x)
} catch (CompilerException x)
protected ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator...
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 ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator...
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
ArrayList includesList = new ArrayList ();
ArrayList includesList = new ArrayList();
protected ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator...
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 ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator...
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
for (Iterator include_it = includesElementList.iterator(); include_it.hasNext();) { XMLElement inc_el = (XMLElement)include_it.next();
for (Iterator include_it = includesElementList.iterator(); include_it.hasNext(); ) { XMLElement inc_el = (XMLElement) include_it.next();
protected ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator...
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 ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator...
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
{ includesList.add (name);
{ includesList.add(name); } else { parseError( inc_el, "missing \"name\" attribute for <include> in <updatecheck>");
protected ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator...
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 { parseError(inc_el, "missing \"name\" attribute for <include> in <updatecheck>");
} } ArrayList excludesList = new ArrayList(); Vector excludesElementList = f.getChildrenNamed("exclude"); if (excludesElementList != null) { for (Iterator exclude_it = excludesElementList.iterator(); exclude_it.hasNext(); ) { XMLElement excl_el = (XMLElement) exclude_it.next(); String name = excl_el.getAttribute("n...
protected ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator...
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
ArrayList excludesList = new ArrayList (); Vector excludesElementList = f.getChildrenNamed("exclude"); if (excludesElementList != null) { for (Iterator exclude_it = excludesElementList.iterator(); exclude_it.hasNext();) { XMLElement excl_el = (XMLElement)exclude_it.next(); String name = excl_el.getAttribute("name")...
pack.updatechecks.add( new UpdateCheck(includesList, excludesList, casesensitive)); }
protected ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator...
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 (root, "<packs> requires a <pack>");
parseError(root, "<packs> requires a <pack>");
protected ArrayList getPacks(XMLElement data) throws CompilerException { // Initialisation ArrayList packs = new ArrayList(); XMLElement root = requireChildNamed(data, "packs"); // dummy variable used for values from XML String val; // We process each pack markup int packCounter = 0; Iterator...
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
List osList = OsConstraint.getOsList (xmlPanel); Panel panel = new Panel(); panel.osConstraints = osList; panel.className = xmlPanel.getAttribute("classname");
List osList = OsConstraint.getOsList(xmlPanel); Panel panel = new Panel(); panel.osConstraints = osList; panel.className = xmlPanel.getAttribute("classname");
protected ArrayList getPanels(XMLElement data) throws CompilerException { // Initialisation ArrayList panels = new ArrayList(); XMLElement root = requireChildNamed(data, "panels"); // We process each langpack markup Iterator iter = root.getChildrenNamed("panel").iterator(); while (iter.hasNext()) ...
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 (root, "<panels> requires a <panel>");
parseError(root, "<panels> requires a <panel>");
protected ArrayList getPanels(XMLElement data) throws CompilerException { // Initialisation ArrayList panels = new ArrayList(); XMLElement root = requireChildNamed(data, "panels"); // We process each langpack markup Iterator iter = root.getChildrenNamed("panel").iterator(); while (iter.hasNext()) ...
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 (root == null) return resources;
if (root == null) return resources;
protected ArrayList getResources(XMLElement data) throws CompilerException { // Initialisation ArrayList resources = new ArrayList(); XMLElement root = data.getFirstChildNamed("resources"); if (root == null) return resources; // We process each res markup Iterator iter = root.getChildrenNamed("...
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 (! src.isAbsolute())
if (!src.isAbsolute())
protected ArrayList getResources(XMLElement data) throws CompilerException { // Initialisation ArrayList resources = new ArrayList(); XMLElement root = data.getFirstChildNamed("resources"); if (root == null) return resources; // We process each res markup Iterator iter = root.getChildrenNamed("...
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
resources.add(new Resource(requireAttribute(res, "id"), src.getPath(), validateYesNoAttribute(res, "parse", NO), res.getAttribute("type"), res.getAttribute("encoding")));
resources.add( new Resource( requireAttribute(res, "id"), src.getPath(), validateYesNoAttribute(res, "parse", NO), res.getAttribute("type"), res.getAttribute("encoding")));
protected ArrayList getResources(XMLElement data) throws CompilerException { // Initialisation ArrayList resources = new ArrayList(); XMLElement root = data.getFirstChildNamed("resources"); if (root == null) return resources; // We process each res markup Iterator iter = root.getChildrenNamed("...
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 (root, "<resources> requires a <res>");
parseError(root, "<resources> requires a <res>");
protected ArrayList getResources(XMLElement data) throws CompilerException { // Initialisation ArrayList resources = new ArrayList(); XMLElement root = data.getFirstChildNamed("resources"); if (root == null) return resources; // We process each res markup Iterator iter = root.getChildrenNamed("...
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
InputStream uninst_is = getClass().getResourceAsStream("/lib/uninstaller.jar");
InputStream uninst_is = getClass().getResourceAsStream("/lib/uninstaller.jar");
protected ArrayList getResources(XMLElement data) throws CompilerException { // Initialisation ArrayList resources = new ArrayList(); XMLElement root = data.getFirstChildNamed("resources"); if (root == null) return resources; // We process each res markup Iterator iter = root.getChildrenNamed("...
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 uninst = Compiler.IZPACK_HOME + "lib" + File.separator + "uninstaller.jar";
String uninst = Compiler.IZPACK_HOME + "lib" + File.separator + "uninstaller.jar";
protected ArrayList getResources(XMLElement data) throws CompilerException { // Initialisation ArrayList resources = new ArrayList(); XMLElement root = data.getFirstChildNamed("resources"); if (root == null) return resources; // We process each res markup Iterator iter = root.getChildrenNamed("...
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
uninst_is = new FileInputStream (uninst); } catch (IOException x)
uninst_is = new FileInputStream(uninst); } catch (IOException x)
protected ArrayList getResources(XMLElement data) throws CompilerException { // Initialisation ArrayList resources = new ArrayList(); XMLElement root = data.getFirstChildNamed("resources"); if (root == null) return resources; // We process each res markup Iterator iter = root.getChildrenNamed("...
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 RuntimeException ("The uninstaller ("+uninst+") seems to be missing: "+x.toString());
throw new RuntimeException( "The uninstaller (" + uninst + ") seems to be missing: " + x.toString());
protected ArrayList getResources(XMLElement data) throws CompilerException { // Initialisation ArrayList resources = new ArrayList(); XMLElement root = data.getFirstChildNamed("resources"); if (root == null) return resources; // We process each res markup Iterator iter = root.getChildrenNamed("...
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 ArrayList getResources(XMLElement data) throws CompilerException { // Initialisation ArrayList resources = new ArrayList(); XMLElement root = data.getFirstChildNamed("resources"); if (root == null) return resources; // We process each res markup Iterator iter = root.getChildrenNamed("...
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
this.varMap = new VariableValueMapImpl ();
this.varMap = new VariableValueMapImpl();
protected Properties getVariables(XMLElement data) throws Exception { this.varMap = new VariableValueMapImpl (); Properties retVal = null; // We get the varible list XMLElement root = data.getFirstChildNamed("variables"); if (root == null) return retVal; retVal = new Properties(); Itera...
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
retVal.setProperty(requireAttribute(var, "name"), requireAttribute(var, "value")); varMap.setVariable(requireAttribute(var, "name"), requireAttribute(var, "value"));
retVal.setProperty( requireAttribute(var, "name"), requireAttribute(var, "value")); varMap.setVariable( requireAttribute(var, "name"), requireAttribute(var, "value"));
protected Properties getVariables(XMLElement data) throws Exception { this.varMap = new VariableValueMapImpl (); Properties retVal = null; // We get the varible list XMLElement root = data.getFirstChildNamed("variables"); if (root == null) return retVal; retVal = new Properties(); Itera...
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 x)
} catch (Exception x)
protected XMLElement getXMLTree() throws CompilerException, IOException { // Initialises the parser StdXMLParser parser = new StdXMLParser(); parser.setBuilder(new StdXMLBuilder()); parser.setReader(new StdXMLReader(new FileInputStream(filename))); parser.setValidator(new NonValidator()); // We 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(data, "the file version is different from the compiler version");
parseError( data, "the file version is different from the compiler version");
protected XMLElement getXMLTree() throws CompilerException, IOException { // Initialises the parser StdXMLParser parser = new StdXMLParser(); parser.setBuilder(new StdXMLBuilder()); parser.setReader(new StdXMLReader(new FileInputStream(filename))); parser.setValidator(new NonValidator()); // We 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
System.out.println("- Copyright (C) 2001-2003 Julien Ponge"); System.out.println("- Visit http: System.out.println("- Released under the terms of the GNU GPL either version 2");
System.out.println("- Copyright (C) 2001-2004 Julien Ponge"); System.out.println( "- Visit http: System.out.println( "- Released under the terms of the GNU GPL either version 2");
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