> Hi,
>
> I am beginner in ant.
>
> I am trying to write one program in ant- which will
save Pass/fail
> Notification in one text file. Could you help me
please?
ant [target] | file.txt
use pipes to save the build output to a text file, to get
just the
BUILD SUCCESSFUL/FAILED use
ant [target] | tail -2 | head -1 | status.txt
eg:
kev ubuntu-dev:~/workspace/ant-core-trunk$ ant -f
test-id.xml | tail
-2 | head -1 | output.txt
This is the simplest solution
Kev
------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribe ant.apache.org
For additional commands, e-mail: dev-help ant.apache.org
|