Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache Ant - program output accompanied by "[java]" tags

Tags:

java

ant

A stupid question, but I couldn't find an answer anywhere.

Currently learning Apache Ant and I started by making a very basic build file and java project that prints a line of string to the console. This is what is outputted when I used the command

ant compile jar run

PS C:\Users\zayd\Desktop\Apps\pbox> ant compile jar run
Buildfile: C:\Users\zayd\Desktop\Apps\pbox\build.xml

compile:
    [mkdir] Created dir: C:\Users\zayd\Desktop\Apps\pbox\build\classes
    [javac] C:\Users\zayd\Desktop\Apps\pbox\build.xml:9: warning: 'includeantruntime' was not set, defaulting to build.s
ysclasspath=last; set to false for repeatable builds
    [javac] Compiling 8 source files to C:\Users\zayd\Desktop\Apps\pbox\build\classes

jar:
    [mkdir] Created dir: C:\Users\zayd\Desktop\Apps\pbox\build\jar
    [jar] Building jar: C:\Users\zayd\Desktop\Apps\pbox\build\jar\Main.jar

run:
    [java] ~We'll go down in history~

BUILD SUCCESSFUL
Total time: 1 second

Is there a way to remove the '[java]' tags that are being printed alongside the program output?

like image 422
Waves Avatar asked Apr 25 '15 01:04

Waves


People also ask

What is Apache Ant with example?

Apache ANT is a Java based build tool from Apache Software Foundation. Apache ANT's build files are written in XML and they take advantage of being open standard, portable and easy to understand. This tutorial will teach you how to use Apache ANT to automate the build and deployment process in simple and easy steps.

Does Ant use Java?

Ant is written in Java. Users of Ant can develop their own "antlibs" containing Ant tasks and types, and are offered a large number of ready-made commercial or open-source "antlibs".

Which Ant task does the Java compiling?

Ant Javac task is used to compile Java source file. It scans source and destination directory to compile the source file.


1 Answers

Did you try the -emacs command-line option?

https://ant.apache.org/manual/running.html

like image 79
davidrmcharles Avatar answered Nov 07 '22 13:11

davidrmcharles