I am having around 823
java source files in the "${build}/csmip" dir, when i run the
ant compilation script that is given below, it is taking around 40-45 mins to compile, Can anyone please answer the following questions..
1. how can i minimise the time taken for compilation..
2. is there any other properties that i have to set so that the time taken to build reduces...
(i am expecting the compilation to happen within 5-6 mins)
the script being used is as follows....
------------------build.xml-------------------------------------------------
<project name="Test" default="dest" basedir="." >
<description>
example build file
</description>
<!-- set global properties for this build -->
<property name="build" location="/fr2/gcsm/build" />
<property name="lib.dir" location="/fr2/gcsm/lib" />
<property name="java.path" location="/opt/frame/jdk1.4.2/bin" />
<path id="class.path">
<fileset dir="${lib.dir}">
<include name="**/*.jar"/>
<include name="**/*.zip"/>
</fileset>
<fileset dir="/opt/frame/java">
<include name="**/*.jar"/>
</fileset>
<fileset dir="/opt/frame/JavaAPI/axis-1_1/lib">
<include name="**/*.jar"/>
</fileset>
<pathelement location="/opt/frame/JWS/servlets.jar" />
</path>
<target name="compile" description="compile the source " >
<javac executable="${java.path}/javac"
srcdir="${build}/csmip" fork="yes"
deprecation="off" memoryMaximumSize="256m"
destdir="${build}/classes" >
<classpath refid="class.path"/>
</javac>
<!-- javac executable="${java.path}/javac"
srcdir="${build}/java" fork="yes"
deprecation="off"
destdir="${build}/classes"
listfiles="yes" >
<classpath refid="class.path"/>
</javac-->
</target>
</project>
-------------------------------------------------------------------------
Thanks for any help provided in advance....