| AW: ant variables on win & unix | AW: ant variables on win & unix 2004-02-02 - By Lars Gersmann
download roxes ant tasks (http://www.roxes.com/produkte/rat.html) containing the os.properties task. this task does exactly the requested job.
roxes ant tasks are open source.
-----Ursprungliche Nachricht----- Von: Pete Stokes [mailto:stokesp@(protected)] Gesendet: Montag, 2. Februar 2004 15:05 An: user@(protected) Betreff: ant variables on win & unix
Hi.
I want to ant to automatically detect which platform I'm running it on (win/linux) and therefore to use a different variable for the deploy target, i.e. in win I'd need to take into account drive names
win: e:/java/deploy/tomcat/webapps/myapp linux /usr/local/tomcat/webapps/myapp
Looked at system properties, but cannot figure it out, any help would be greatly appreciated.
Regards, Pete.
**************************************************************************** ******* This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. **************************************************************************** ******* For any information on the Quinn Group of Companies please visit :-
http://www.quinn-group.com
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|
 |