Details
Description
We stumbled across the need to configure WAR-Files during the installation process with properties which are entered in an UserInputPanel.
To do this we had to call an Ant-Task after the installation which would change the respective files in the WAR file.
I refactored the parse system to achieve this with IzPack alone. Syntax in install.xml is as follows:
targetfile="<PATH_TO_ZIP>@@<PATH_WITHIN_ZIP_1>:<PATH_WITHIN_ZIP_2>:..."
Example:
<pack name="TEST" required="yes">
<description>Test</description>
<singlefile target="$INSTALL_PATH/test.zip" src="test/test.zip"></singlefile>
<parsable targetfile="$INSTALL_PATH/test.zip@@test/a/sys.props:test/b/sys.props"></parsable>
</pack>
Doku patch will follow
Comments are welcome!
That would be really useful. I have a similar requirement, but it is even a little more complex. I need to substitute variables in WAR module within an EAR module. Basically a zip/jar file within a zip/jar file. Any chance to extend the feature to support that?
Right now, I have ant scripts as well that unpack, edit, and then repack the EAR to do what I need.
In any case, this is a nice feature to have no matter what.