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 <dirname> that can help. see http://ant.apache.org/manual/CoreTasks/dirname.html Also there is a task <pathconvert> that can be used if needed. see http://ant.apache.org/manual/CoreTasks/pathconvert.html However, i would read the tutorials and FAQ for ant first. Property files can be very helpful.
--glenn On Fri, Nov 27, 2009 at 12:11, supareno <reno.rkc...@free.fr> wrote: > 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/src/server/ >> >> Please help me. >> >> > "C:\Release" will not work under *nix. you could build the release in a > project folder like below: > <project> > |_ build.xml > |_ src > |_ main > |_ test > |_ build (or release) // this folder will be used for your release :-) > > after, if you want to move the build on the server, you can use a build > property to set > the root dit where to move this build. > > hope this help > > > S. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > >