[izpack-changes] r1671 - izpack-src/trunk/src/lib/com/izforge/izpack/compiler
noreply at berlios.de
noreply at berlios.de
Tue Jan 2 11:28:59 CET 2007
Author: dreil
Date: 2007-01-02 11:28:58 +0100 (Tue, 02 Jan 2007)
New Revision: 1671
Modified:
izpack-src/trunk/src/lib/com/izforge/izpack/compiler/CompilerConfig.java
izpack-src/trunk/src/lib/com/izforge/izpack/compiler/IPackager.java
izpack-src/trunk/src/lib/com/izforge/izpack/compiler/Packager.java
Log:
added support for custom configuration information of packagers
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-02 10:11:23 UTC (rev 1670)
+++ izpack-src/trunk/src/lib/com/izforge/izpack/compiler/CompilerConfig.java 2007-01-02 10:28:58 UTC (rev 1671)
@@ -349,7 +349,10 @@
unpackerclassname = requireAttribute(unpacker, "class");
}
}
- compiler.initPackager(packagerclassname);
+ compiler.initPackager(packagerclassname);
+ if (root != null){
+ compiler.getPackager().addConfigurationInformation(root);
+ }
notifyCompilerListener("loadPackager", CompilerListener.END, data);
}
Modified: izpack-src/trunk/src/lib/com/izforge/izpack/compiler/IPackager.java
===================================================================
--- izpack-src/trunk/src/lib/com/izforge/izpack/compiler/IPackager.java 2007-01-02 10:11:23 UTC (rev 1670)
+++ izpack-src/trunk/src/lib/com/izforge/izpack/compiler/IPackager.java 2007-01-02 10:28:58 UTC (rev 1671)
@@ -23,6 +23,8 @@
import java.util.List;
import java.util.Properties;
+import net.n3.nanoxml.XMLElement;
+
import com.izforge.izpack.CustomData;
import com.izforge.izpack.GUIPrefs;
import com.izforge.izpack.Info;
@@ -169,9 +171,15 @@
public abstract PackCompressor getCompressor();
/**
- *
+ * Initializes a pack compressor if supported by the packager
* @param compr_format
* @param compr_level
*/
public abstract void initPackCompressor(String compr_format, int compr_level) throws CompilerException;
+
+ /**
+ * Adds configuration information to the packager.
+ * @param data - the xml-element packaging from the install.xml
+ */
+ public abstract void addConfigurationInformation(XMLElement data);
}
\ No newline at end of file
Modified: izpack-src/trunk/src/lib/com/izforge/izpack/compiler/Packager.java
===================================================================
--- izpack-src/trunk/src/lib/com/izforge/izpack/compiler/Packager.java 2007-01-02 10:11:23 UTC (rev 1670)
+++ izpack-src/trunk/src/lib/com/izforge/izpack/compiler/Packager.java 2007-01-02 10:28:58 UTC (rev 1671)
@@ -39,6 +39,8 @@
import java.util.zip.ZipException;
import java.util.zip.ZipInputStream;
+import net.n3.nanoxml.XMLElement;
+
// The declarations for ZipOutputStreams will be done
// as full qualified to clear at the use point that
// we do not use the standard class else the extended
@@ -695,4 +697,10 @@
compressor = PackCompressorFactory.get( compr_format);
compressor.setCompressionLevel(compr_level);
}
+
+ public void addConfigurationInformation(XMLElement data)
+ {
+ // TODO Auto-generated method stub
+
+ }
}
More information about the izpack-changes
mailing list