* Steve Loughran [2008.04.28 06:00]:
> Jean-Rene David wrote:
>> [...]
>> But the task doesn't recurse the hierarchy
>> to find the class file. It only looks in the
>> "destdir" itself. So if I just:
>>
>> $ touch foo/Welcome.class
>
> you must move the class under the package name it is in.
Of
Jean-Rene David wrote:
Hello,
When a class is in a package, the target
always rebuilds it even if the source hasn't
changed. Here's a test case:
$ ant -version
Apache Ant version 1.7.0 compiled on December 13 2006
$ ls
build.xml
Welcome.java
$ cat Welcome.java
package My.Class;
public class
Hi,
Maybe try putting your javafile elsewhere :
* in a src/ dir (so that javac destdir is not a subdirectory of srcdir,
which probably confuses javac)
* by respecting the package / directory structure : it should be in
my/class/ package hierarchy
My 2 cts
Nico
Jean-Rene David <[EMAIL PROTECTE