Angel
Angel

Reputation: 57

How do you prevent Ant from display [java] in the command window?

When you run a Java file through Ant, all of the output has the [java]-tag in front of it.

How do you remove this?

Example:

 [java]            |            *
 [java]            | :irc.cs472.cs.drexel.edu
 [java]            | 372 test :- *    Welcome
 [java]            | on our new IRC server, ru
 [java]            | nning on:  *
 [java]            | :irc.cs472.cs.drexel.edu
 [java]            | 372 test :- *    Debian G
 [java]            | NU/Linux (www.debian.org)
 [java]            |            *
 [java]            | :irc.cs472.cs.drexel.edu
 [java]            | 372 test :- *************
 [java]            | *************************
 [java]            | ************
 [java]            | QUIT
 [java] Type \m to | :irc.cs472.cs.drexel.edu
 [java]  bring up  | NOTICE test :Connection s
 [java] the menu a | tatistics: client 0.1 kb,
 [java] t any time |  server 1.6 kb.
 [java] ___________________________________
 [java] Please enter your choice :

BUILD SUCCESSFUL
Total time: 1 minute 39 seconds

Upvotes: 1

Views: 72

Answers (2)

Rebse
Rebse

Reputation: 10377

Just run ant with emacs parameter to get rid of the adornments, f.e. :

ant -emacs -f build.xml

see ant manual command line options

Upvotes: 1

alex
alex

Reputation: 490403

You could used sed. Pipe the ant output into...

sed " s/^\[JAVA\] //"

Upvotes: 0

Related Questions