Home | WebServices | Maven | SOA | REST | Agile & SCRUM | Java & JEE
Homepage

ANT Beginner Notes

Note 1: Often I notice ANT beginners invariably naming the script file build.xml. ANT by default looks for build.xml. The behaviour can be overridden by specifying a file name. For example using command prompt you can specify ant -f buildfilename as in the screen shot below. I have mentioned the default as target as copy. To run another target [other than the default target, let us say a target called compile] the command is ant -f bookbuild.xml compile.

ant option

Note 2: If ANT javac task gives outofmemoryerror when compiling, please use the following [Increase 512 MB to 1GB if required].
<javac srcdir="src" destdir="classes" classpath="${buildclasspath}" fork="true" memoryInitialSize="128m" memoryMaximumSize="512m"/>


Last updated on 18-May-2008. More Notes to follow.............

 

 











Copyrights 2008 Thea Solutions
All rights reserved
Powered by 4creativeweb Solutions