Instead of using the echo target for debugging, we can use the record target. This records all the activity as per the specified level of verbosity. Here is how to use this (from ant docs):
The following build.xml snippet is an example of how to use the recorder to record just the <javac> task:
...
<compile >
<record name="log.txt" action="start"/>
<javac ...
<record name="log.txt" action="stop"/>
<compile/>
...

The following build.xml snippet is an example of how to use the recorder to record just the <javac> task:
...
<compile >
<record name="log.txt" action="start"/>
<javac ...
<record name="log.txt" action="stop"/>
<compile/>
...
No comments:
Post a Comment