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

John Lussmyer jlussmyer at myrio.com
Fri Mar 2 17:27:02 CET 2007


Thanks.  It surprised me that variables aren't handled in all
parameters.

I was able to re-arrange things to work.

(It sure would be nice to have another build-in variable.  The location
of the install.xml file being processed.)

 

________________________________

From: izpack-users-bounces at lists.berlios.de
[mailto:izpack-users-bounces at lists.berlios.de] On Behalf Of Bartz, Klaus
Sent: Friday, March 02, 2007 1:04 AM
To: izpack-users at lists.berlios.de
Subject: Re: [izpack-users] Unable to get value of Environment Variable

 

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?

	 



_________________________________________________ 
Scanned on 02 Mar 2007 09:13:51
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/izpack-users/attachments/20070302/99a380c1/attachment.html 


More information about the izpack-users mailing list