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
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):
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
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:
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
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
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
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