I'm using the javac taskdef to compile my project source, the target looks like
this:
<javac
srcdir="${src.dir}/${app.name}:${build.xmlc_source.dir}"
destdir="${build.classes}"
classpathref="build.classpath"
includes="**/*.java"
/>
The problem is that it recompiles all the files whether the .class file is
newer than the .java file or not, e.g.
11:51:20 vaughn@seth:~/enhydraApps/LinuxWarehouse $ d
linuxwarehouse/LinuxWarehouse.java
ant.build/classes/linuxwarehouse/LinuxWarehouse.class -l
-rw-r--r-- 1 vaughn vaughn 778 Feb 14 11:50
ant.build/classes/linuxwarehouse/LinuxWarehouse.class
-rw-r--r-- 1 vaughn vaughn 1.2k Feb 12 13:45
linuxwarehouse/LinuxWarehouse.java
After recompile:
11:51:33 vaughn@seth:~/enhydraApps/LinuxWarehouse $ d
linuxwarehouse/LinuxWarehouse.java
ant.build/classes/linuxwarehouse/LinuxWarehouse.class -l
-rw-r--r-- 1 vaughn vaughn 778 Feb 14 11:52
ant.build/classes/linuxwarehouse/LinuxWarehouse.class
-rw-r--r-- 1 vaughn vaughn 1.2k Feb 12 13:45
linuxwarehouse/LinuxWarehouse.java
11:52:36 vaughn@seth:~/enhydraApps/LinuxWarehouse $
I don't know if this is a bug in Ant or a problem with my target. Any help will be
appreciated.
Kind regards
Vaughn Dickson - +27 83 260 5491
Obsidian Systems - Java/PHP/SQL Developer
http://obsidian.co.za - [EMAIL PROTECTED]
Join in the new game that's sweeping the country. It's called "Bureaucracy".
Everybody stands in a circle. The first person to do anything loses.