Re: Help needed for Appache ANT

2009-11-27 Thread jhudson
Hi, Ant "dirname" task resolved my issue. Thank you so much. jhudson wrote: > > Hi > > I have below requirement in ANT:- > > variable1 = ${basedir} > > now let us say from above statement "variable1" got the value > C:\one\two\three\fo

Slash issue in ANT script

2009-11-27 Thread jhudson
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/serve

Help needed for Appache ANT

2009-11-24 Thread jhudson
Hi I have below requirement in ANT:- variable1 = ${basedir} now let us say from above statement "variable1" got the value C:\one\two\three\four now i want to cut two levels from above path (so "C:\one\two" will be the result after cut) and i want to reassign the value to varibale1. So, if