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?
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.
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".
Ant Javac task is used to compile Java source file. It scans source and destination directory to compile the source file.
Did you try the -emacs
command-line option?
https://ant.apache.org/manual/running.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With