Re: TImestamping in ANT

2007-07-26 Thread Dale Anson
Another option for this is to use either the stopwatch task or the performance listener from either antcontrib (antcontribe.sourceforge.net) or antelope (antelope.tigris.org). The performance listener is actually quite nice in that it gathers the statistics as the build runs, then outputs the

Re: TImestamping in ANT

2007-07-26 Thread Wascally Wabbit
Sorry, Incomplete original example methinks. If you change - to + it should work. --- [ A WORKING EXAMPLE TO DEMONSTRATE (TESTED ;-))] Here's a working sample (assuming AntX is installed in a directory at ./antx relative to test script):

removing byte order mark

2007-07-26 Thread Alex Egg
When I run my ant task from windows it gives me errors related to the unicode/utf8 byte order mark. I do not get this error when running the same task from OS X. Anyways, what's an easy way to remove the BOM? Alex

Re: TImestamping in ANT

2007-07-26 Thread dkhanna01
first of all thanks for the information I tried to load antx libraries and it did worked, BUT while calculating the duration its giving me an error as : Unable to convert 'now' to time duration. compile took -now Here is my code:

Re: Need to convert windows batch script (build script) to ant's build.xml

2007-07-26 Thread Wayne Cannon
The "Ant in Action" book is well worth the investment if you expect to continue using Ant at all. It includes a section on migration from other build approaches. --Wayne Sayed, Irfan (Irfan) wrote: Hi All, I have one build script which is totally in windows batch script. I am planning to

Re: Need to convert windows batch script (build script) to ant's build.xml

2007-07-26 Thread Wayne Cannon
Up front, let me say that I am relatively new to using Ant. Ant's declarative approach is significantly different than the sequential/procedural approach of script files and most other languages. I like to think of it as "goal"-oriented as opposed to "process" oriented, if that helps. I resp

AW: Need to convert windows batch script (build script) to ant's build.xml

2007-07-26 Thread Jan.Materne
cls You dont use this in Ant. Ants output is passed to (maybe several) listeners and they dont support cleaning previous output. Writing to STDOUT is only one listeners. xcopy cd No use in Ant. You work with relative (to the buildfile or ) paths. Some tasks support a "dir" attribute for speci

Need to convert windows batch script (build script) to ant's build.xml

2007-07-26 Thread Sayed, Irfan (Irfan)
Hi All, I have one build script which is totally in windows batch script. I am planning to convert that script in Ant's build.xml. Batch script contains all the windows related commands such as cls,xcopy,cd,dir,mv etc. Now for me , as i am very new to Ant world , very difficult to write task fo