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
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
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
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
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
\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