AW: Slash issue in ANT script

2009-11-29 Thread Jan.Materne
think if you create batch/shell scripts that way you are platform dependent anyway ... Jan > -Ursprüngliche Nachricht- > Von: Gilbert Rebhan [mailto:a...@schillbaer.de] > Gesendet: Freitag, 27. November 2009 19:35 > An: Ant Users List > Betreff: Re: Slash issue in ANT

Re: Slash issue in ANT script

2009-11-27 Thread Robert Anderson
There are several ways to handle this. 2 possibilities are... 1. Use relative paths. 2. Set an environment variable, like SERVER_PATH. Then use the environment variable in Ant. -Rob A On Fri, Nov 27, 2009 at 10:38 AM, glenn opdycke-hansen wrote: > I agree that there are some things to be aware

Re: Slash issue in ANT script

2009-11-27 Thread glenn opdycke-hansen
I agree that there are some things to be aware of, for example, c:/ will not work in Unix. Ant generally does the right thing with the slashes. There are tasks, like that can help. see http://ant.apache.org/manual/CoreTasks/dirname.html Also there is a task that can be used if needed. see http

Re: Slash issue in ANT script

2009-11-27 Thread Gilbert Rebhan
jhudson schrieb: > hi, > > My script should work both in Unix and winddows, I don't know how to handle > slash (\) in ANT script in this case. Could some one please help me. The use of the unix slash '/' is strongly recommended, whether you're on windows or not., ant(java) will handle it correctl

Re: Slash issue in ANT script

2009-11-27 Thread supareno
hudson, hi, My script should work both in Unix and winddows, I don't know how to handle slash (\) in ANT script in this case. Could some one please help me. For example, how to make below path as a valid path both in windows and unix, which has both back slash & forward slash C:\Release\work

Slash issue in ANT script

2009-11-27 Thread jhudson
\work/src/server/ Please help me. -- View this message in context: http://old.nabble.com/Slash--issue-in-ANT-script-tp26545081p26545081.html Sent from the Ant - Users mailing list archive at Nabble.com. - To unsubscribe, e-m