ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rich Wagner" <richmwag...@hotmail.com>
Subject Is there a way to echo tasks as they are executed ?
Date Wed, 17 Nov 2004 19:52:41 GMT
Hi Folks,

I am currently faced with needing to understand a number of Ant buildfiles 
(which call each other) which are new to me.  It'd be very helpful if I 
could somehow invoke Ant so that (in addition to doing its normal build 
execution of tasks) right before each task is executed, the task itself is 
echo-ed, post-property expansion.

For example, one of the tasks I see in one of the buildfiles looks like:

        <deploy.bundle.package
            packageSrc="${package.src.directory}"
            packageDest="${staging.directory}"
            configPath="${config.path}"
            configFile="${config.file}"
            jreDir="${jre.dir}"
            toolsDir="${tools.dir}" />

That refers to a custom task written where I work.  We have other such 
custom tasks, and to my knowledge, none of those tasks does anything special 
if "verbose" is on.

So one thing that would help me trace -- in the Ant output -- when this gets 
executed AND what the attribute values are per execution would be some way 
to invoke Ant so that something like this shows up right before the task's 
output:

        <deploy.bundle.package
            packageSrc="/home/me/foo"
            packageDest="/home/me/bar"
            configPath="/etc/foo"
            configFile="bar.xml"
            jreDir="/bin/jdk/jre/"
            toolsDir="/bin/tools" />

Any help or suggestions ?  Keep in mind that I'm looking at Ant files that 
call each other, so echo-ing just the tasks executed in the top-level Ant 
file but NOT in the Ant files that are invoked by it via <ant> ...  well, 
that wouldn't be very helpful...  In other words, I'm imagining some echo 
feature that propogates into sub-buildfiles, just as the "-verbose" option 
does...

Thanks in advance,
Rich Wagner



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message