ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Schildbach" <andreas.schildb...@bch-fms.de>
Subject Re: directory problem with ant
Date Thu, 12 Oct 2000 15:15:42 GMT
----- Original Message -----
From: "Stefan Bodewig" <bodewig@bost.de>
To: <ant-user@jakarta.apache.org>
Sent: Thursday, October 12, 2000 5:05 PM
Subject: Re: directory problem with ant


>  AS> package test;
>  AS> public class Hello ...
>
>  AS> <javac srcdir="."  destdir="."  includes="*.java" />
>
>  AS> MY PROBLEM:
>
>  AS> ant generates a "test"-subdirectory for the .class-files ==>
>  AS> d:\classes\test\test\Hello.class
>
> This is expected behavior, it is not Ant that is creating the
> subdirectory but javac/jikes. The class resides in the package test,
> destdir is the root of the hierarchy so the resulting class gets into
> destdir/test/.
>
>  AS> I tried to use destdir="d:\classes", but in this case ant decides
>  AS> to _not_ use that "test"-directory ==> d:\classes\Hello.class
>
> Well, this is something I've never seen - and I can't reproduce it
> either (maybe because I don't have a Windows box at hand). Does it
> work if you use destdir=".."?

In this case, ant generates the .class file at the right place, but the
dependancy check does not work (the class is compiled each time I invoke
ant)... Strange behaviour!

- Andreas



Mime
View raw message