[izpack-devel] Dumb Variable Question (FILE_SEPARATOR)
Dennis Reil
Dennis.Reil at reddot.de
Tue Jan 22 08:02:43 CET 2008
I think, you'll have to use curly braces around variable names like ${INSTALL_PATH}${FILE_SEPARATOR}settings.cfg
-----Ursprüngliche Nachricht-----
Von: izpack-devel-bounces at lists.berlios.de [mailto:izpack-devel-bounces at lists.berlios.de] Im Auftrag von Hal Vaughan
Gesendet: Dienstag, 22. Januar 2008 04:37
An: izpack-devel at lists.berlios.de
Betreff: [izpack-devel] Dumb Variable Question (FILE_SEPARATOR)
Sorry to bother the list but I'm short on time and want to get a hobby
project that's been on the back burner out of the way.
I know I can use the variable $FILE_SEPARATOR so I get the right
character for different platforms, but if it is followed by text, then
it's not parsed. Here's the path in *nix:
/home/user/MyProgram/settings.cfg
In Windows it would be:
C:\Program Files\MyProgram\settings.cfg
I can use this:
$INSTALL_PATH/settings.cfg
and it works on one OS, but if I try:
$INSTALL_PATH$FILE_SEPARATORsettings.cfg
it won't parse, just as I would not expect it to.
How can I throw in the file separator character into a file like this
without having to do different versions of the file for each OS?
Thanks!
Hal
_______________________________________________
izpack-devel mailing list
izpack-devel at lists.berlios.de
https://lists.berlios.de/mailman/listinfo/izpack-devel
More information about the izpack-devel
mailing list