[izpack-changes] r1697 - izpack-src/trunk/src/lib/com/izforge/izpack/compiler
noreply at berlios.de
noreply at berlios.de
Tue Jan 9 12:54:18 CET 2007
Author: dreil
Date: 2007-01-09 12:54:11 +0100 (Tue, 09 Jan 2007)
New Revision: 1697
Modified:
izpack-src/trunk/src/lib/com/izforge/izpack/compiler/CompilerConfig.java
Log:
corrected handling of packager options
Modified: izpack-src/trunk/src/lib/com/izforge/izpack/compiler/CompilerConfig.java
===================================================================
--- izpack-src/trunk/src/lib/com/izforge/izpack/compiler/CompilerConfig.java 2007-01-09 11:50:41 UTC (rev 1696)
+++ izpack-src/trunk/src/lib/com/izforge/izpack/compiler/CompilerConfig.java 2007-01-09 11:54:11 UTC (rev 1697)
@@ -336,8 +336,9 @@
XMLElement root = data.getFirstChildNamed("packaging");
String packagerclassname = "com.izforge.izpack.compiler.Packager";
String unpackerclassname = "com.izforge.izpack.installer.Unpacker";
+ XMLElement packager = null
if (root != null){
- XMLElement packager = root.getFirstChildNamed("packager");
+ packager = root.getFirstChildNamed("packager");
if (packager != null){
packagerclassname = requireAttribute(packager, "class");
@@ -350,8 +351,8 @@
}
}
compiler.initPackager(packagerclassname);
- if (root != null){
- XMLElement options = root.getFirstChildNamed("options");
+ if (packager != null){
+ XMLElement options = packager.getFirstChildNamed("options");
if (options != null){
compiler.getPackager().addConfigurationInformation(options);
}
More information about the izpack-changes
mailing list