I am trying to write ant build to compile the source folder, here is my script target for compilation.
<target name="compile" depends="init">
<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="true">
<classpath refid="master-classpath"/>
</javac>
</target>
In my project I have about 1000 files .java. When ever one file .javachanges above, it seeks to compile all files .java. This makes development very slow. I just want to know if there is a way or code to change the behavior of a task to compile only a modified or modified file .java, not the whole file .java.
Please help me.
source
share