[izpack-devel] variable substitution

Matthew Fudge matfud at yahoo.com
Thu Jan 17 13:46:54 CET 2008


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



More information about the izpack-devel mailing list