I am trying to write ant build for compiling source folder here is my script **target** for compiling.

```
 <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 near about 1000 `.java` files. When ever a single `.java` file is changed above target tends to compile all `.java` files. Which make development very slow. I just want to know is there any way or code to change the behavior of task to compile only modified or changed `.java` file rather than all `.java` file. 

Please help me.