Quantcast
Channel: Snipplr
Viewing all articles
Browse latest Browse all 78

(XML) Minimal Apache Ant build.xml - jerryvig

$
0
0

This is a minimal apache ant build.xml file that will quickly do all the things that you will generally want to do, including compiling and building a simple Java project to class files and jars. It provides targets to compile the class files and jars and to run the main class. The fields marked "My Project Name Here" and "My Main Class Here" are the fields that need to be modified for your project. To start create a directory for your project with subdirectories "lib" and "src" and place the build.xml file in the same directory. Place the Java sources in the "src" directory. Type "ant build" to compile and "ant run" to test and run the main class. build build.xml lib src


Viewing all articles
Browse latest Browse all 78

Trending Articles