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

Bartz, Klaus Klaus.Bartz at coi.de
Fri Mar 2 17:41:34 CET 2007


Hi John,
remember that srcdir and targetdir will be resolved from different
programs at different times.
The compiler resolves srcdir with the ant directory scanner (which
supports nice things as
<fileset>), but not the targetdir. Only the informations will be packed
into the pack with the variable,
not a resolved path (who should it be done on the build machine??). The
variable substitution
makes the installer at an other time on an other box.
The only problem I see is, that all sources have to have one root. I
have more than one project with
more than one roots. Therefore I have ant scripts where the different
roots are set.
 
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 5:27 PM
	To: izpack-users at lists.berlios.de
	Subject: Re: [izpack-users] Unable to get value of Environment
Variable
	
	

	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/fff2cde2/attachment.html 


More information about the izpack-users mailing list