[izpack-users] IzPack XML variable substitution...
Dennis Reil
Dennis.Reil at reddot.de
Tue Dec 4 15:07:27 CET 2007
It should be:
<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
<properties>
<category name="general">
<property name="${PORT}" value=""/>
</category>
</properties>
Regards,
Dennis
-----Ursprüngliche Nachricht-----
Von: izpack-users-bounces at lists.berlios.de [mailto:izpack-users-bounces at lists.berlios.de] Im Auftrag von Ajay Kumar Gour
Gesendet: Dienstag, 4. Dezember 2007 14:18
An: izpack-users at lists.berlios.de
Betreff: [izpack-users] IzPack XML variable substitution...
Hello All,
I am fairly new to the IZpack and just now i have started using it. I want
to use it as an installer for one of my application, which requires to set
the XML configuration properties for the application. To be more
technical, I want to UserInput panel to take input from user and set these
values in the XML file (which contains the configuration properties).
Problem is - User input is not reflected back in XML configuration file.
Please somebody help me sorting it out.
Any help would be highly appreciated.
Here is my configuration file where i need to set values -
<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
<properties>
<category name="general">
<property name="PORT" value=""/>
</category>
</properties>
UserInputSpec.xml file -
<userInput>
<panel order="0">
<!--field type="staticText" align="left" txt="My comment is here."
id="input.comment"/-->
<field type="text" variable="PORT">
<spec txt="Proxy Port:" id="PORT" size="6" set=""/>
</field>
</panel>
</userInput>
And finally, install.xml
<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
<installation version="1.0">
<info>
<appname>Blueoptima Connector Server</appname>
<appversion>1.0</appversion>
<authors>
<author name="Jason Rolles"
email="Jason.Rolles at blueoptima.com"/>
</authors>
<url>http://www.blueoptima.com</url>
</info>
<variables>
<variable name="PORT" value="9999"/>
</variables>
<guiprefs width="640" height="480" resizable="no"/>
<locale>
<langpack iso3="eng"/>
</locale>
<resources>
<res id="LicencePanel.licence" src="Licence.txt"/>
<res id="InfoPanel.info" src="Readme.txt"/>
<res id="userInputSpec.xml" src="userInputSpec.xml"/>
</resources>
<panels>
<panel classname="HelloPanel"/>
<panel classname="InfoPanel"/>
<panel classname="LicencePanel"/>
<panel classname="TargetPanel"/>
<panel classname="UserInputPanel"/>
<panel classname="PacksPanel"/>
<panel classname="InstallPanel"/>
<panel classname="FinishPanel"/>
</panels>
<packs>
<pack name="Base" required="yes">
<description>The base files</description>
<file src="Readme.txt" targetdir="$INSTALL_PATH"/>
<file src="Licence.txt" targetdir="$INSTALL_PATH"/>
<file src="script.bat" targetdir="$INSTALL_PATH"/>
<file src="myconfiguration.xml" targetdir="$INSTALL_PATH"/>
<parsable targetfile="$INSTALL_PATH/myconfiguration.xml"
type="xml"/> <!-- The file will be parsed -->
<parsable targetfile="$INSTALL_PATH/script.bat"/> <!-- The
file will be parsed -->
</pack>
<pack name="Docs" required="no">
<description>The documentation</description>
<file src="doc" targetdir="$INSTALL_PATH"/> <!-- Reccursive
adding -->
</pack>
<pack name="Sources" required="no">
<description>The sources</description>
<file src="src" targetdir="$INSTALL_PATH"/>
</pack>
</packs>
</installation>
Thanks,
-Ajay
_______________________________________________
izpack-users mailing list
izpack-users at lists.berlios.de
https://lists.berlios.de/mailman/listinfo/izpack-users
More information about the izpack-users
mailing list