Geant's built-in variables |
Current working directory. The value of this variable changes whenever the current working directory changes. This usually happens when the attribute 'dir' is used which is supported by tasks and the element 'target'.
The value of this variable contains the name of the used operating system: 'windows', 'unix'
If the used operating system is windows then this variable is set (to the value 'true'). Thus you can simply use it in all targets/tasks in the if/unless attributes: ... if="${is_windows}"
If the used operating system is unix then this variable is set (to the value 'true'). Thus you can simply use it in all targets/tasks in the if/unless attributes: ... if="${is_unix}"
The value of this variable is '\' if the used operating system is windows and '/' if it is unix.
The value of this variable is '.exe' if the used operating system is windows and '' (empty string) if it is unix.
Copyright © 2002-2005, Sven Ehrke mailto:ericb@gobosoft.com http://www.gobosoft.com Last Updated: 7 July 2005 |