Skip to Content
Java Projects - Second Edition
book

Java Projects - Second Edition

by Peter Verhas
August 2018
Intermediate to advanced
524 pages
14h 45m
English
Packt Publishing
Content preview from Java Projects - Second Edition

Using Ant

When you see a project to be built by Ant, you will see a build.xml file. This is the project build file, the one that Ant was missing when you checked that the installation was correct. It can have any other name, and you can specify the name of the file as a command-line option for Ant, but this is the default filename, as Makefile was for make. A build.xml sample looks like the following:

<project name="HelloWorld" default="jar" basedir="."> <description> This is a sample HelloWorld project build file. </description> <property name="buildDir" value="build"/> <property name="srcDir" value="src"/> <property name="classesDir" value="${buildDir}/classes"/> <property name="jarDir" value="${buildDir}/jar"/> <target name="dirs"> <mkdir ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java 11 Cookbook - Second Edition

Java 11 Cookbook - Second Edition

Nick Samoylov, Mohamed Sanaulla

Publisher Resources

ISBN: 9781789131895Supplemental Content