[izpack-devel] Variable names with hyphens used as folder namesdon't work

Bartz, Klaus Klaus.Bartz at coi.de
Thu Feb 8 08:50:20 CET 2007


Hi Mike,
try
<file> targetdir="${Folder-name}"
 
Cheers
 
Klaus

-----Original Message-----
From: izpack-devel-bounces at lists.berlios.de [mailto:izpack-devel-bounces at lists.berlios.de]On Behalf Of Mike Patterson
Sent: Thursday, February 08, 2007 2:15 AM
To: izpack-devel at lists.berlios.de
Subject: [izpack-devel] Variable names with hyphens used as folder namesdon't work


When I define a variable using a name with hyphens, and the name is used for a directory, using the variable results in a directory with the same name as the variable name being created, rather than a directory accessed using the name the variable is set to. 
 
For example, I set the variable "Folder-name" to "test" and use a <file> targetdir="$Folder-name". Instead of files being written into the folder "test", they are written into a new folder named "$Folder-name" (literally $Folder-name). If I use underscores in the variable name as in "Folder_name", it works as expected. 
 
 -- Mike

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.berlios.de/pipermail/izpack-devel/attachments/20070208/11b2acfa/attachment.html 


More information about the izpack-devel mailing list