[izpack-devel] variable substitution

Dennis Reil Dennis.Reil at reddot.de
Thu Jan 17 13:58:20 CET 2008


This behaviour (called Dynamic Variables) is already integrated in izpack 3.11. Look at the documentation on how to use it.

Regards,
   Dennis


-----Ursprüngliche Nachricht-----
Von: izpack-devel-bounces at lists.berlios.de [mailto:izpack-devel-bounces at lists.berlios.de] Im Auftrag von Matthew Fudge
Gesendet: Donnerstag, 17. Januar 2008 13:47
An: izpack-devel at lists.berlios.de
Betreff: [izpack-devel] variable substitution

Hi all,


I am defining a number of variables in my install.xml file e.g.
    <variables>
        <variable name="mcs.drws.device.repository.url" value="${INSTALL_PATH}/devicerepository/devices.mdpr"/> 
        <variable name="mcs.drws.cache.dir" value="${INSTALL_PATH}/webapp/WEB-INF/cache"/>
        <variable name="mcs.drws.log4j.config.file" value="${INSTALL_PATH}/webapp/WEB-INF/drws-log4j.xml"/>
        <variable name="mcs.drws.allow.non.secure.access" value="false"/>
    </variables> 


These are supposed to be substituted into various files at install time. And they are, however the 
${mcs.drws.device.repository.url} 
substitution point in one such file (for example) gets the value 
${INSTALL_PATH}/devicerepository/devices.mdpr
rather then also having the ${INSTALL_PATH} part replaced with the install time value.

It looks like either 
a) variables can not have substitution points in their own values
or
b) the variables are defined at compile time and never examined again.

I would like to modify this behaviour so the above example works (it is useful to have constructed variables esp. when they are paths as they get converted to platform specific paths at install)

Any hints on where this behaviour should be added?

Cheers


matthew







      __________________________________________________________
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com

_______________________________________________
izpack-devel mailing list
izpack-devel at lists.berlios.de
https://lists.berlios.de/mailman/listinfo/izpack-devel


More information about the izpack-devel mailing list