[izpack-users] Unable to get value of Environment Variable

Bartz, Klaus Klaus.Bartz at coi.de
Fri Mar 2 10:03:50 CET 2007


Hi John,
you can use IzPack variables as targetdir or in a panel or custom
action, but not
as sourcedir. Use only one root and set the root in the IzPack-compiler
call. Or
create an ant script which revises your install.xml first and call then
the
IzPack-compiler. 
Additional there are <properties> declared in the dtd. But I do not know
how 
to use it.
 
Cheers
 
Klaus

	-----Original Message-----
	From: izpack-users-bounces at lists.berlios.de
[mailto:izpack-users-bounces at lists.berlios.de] On Behalf Of John
Lussmyer
	Sent: Friday, March 02, 2007 12:49 AM
	To: izpack-users at lists.berlios.de
	Subject: [izpack-users] Unable to get value of Environment
Variable
	
	

	I've been trying to use an environment variable in my
install.xml as follows:

	 

	     <fileset dir="${ENV[MDSROOT]}" targetdir="$INSTALL_PATH"/>

	 

	When I compile the install.xml, I get the following error:

	 

	-> Fatal error :

	   install.xml:40: Invalid directory 'dir': ${ENV[MDSROOT]}

	com.izforge.izpack.compiler.CompilerException: install.xml:40:
Invalid directory 'dir': ${ENV[MDSROOT]}

	        at
com.izforge.izpack.compiler.CompilerConfig.parseError(CompilerConfig.jav
a:1619)

	 

	The value IS set in the environment, as shown by a "set"
command:

	 

	MDSROOT=C:\Dev\Install\Hes2.3Poc

	 

	If I put the absolute path directly in the "dir" entry, it works
just fine.

	 

	So, any suggestions on what I'm doing wrong?

	 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/izpack-users/attachments/20070302/13050e43/attachment.html 


More information about the izpack-users mailing list