ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kief Morris <>
Subject Re: Unnecessary compilation
Date Thu, 19 Oct 2000 12:16:38 GMT
Stefan Bodewig typed the following on 13:27 19/10/00 +0200
 >>>>>> "KM" == Kief Morris <> writes:
 > KM> I've found that all of my source files are being recompiled by
 > KM> the <javac> target every time,
 >Have you read
 >I think you will find your answer there.

Thanks for the reference. I'm not sure it has the answer, though,
it says "To make this work, your classes must reside in a directory
structure matching your package structure and javac's srcdir attribute
must point to it."

My project does meet these requirements, but perhaps Ant is getting confused
by the way I am specifying the files to compile. My javac target is:

<javac srcdir="${source}/com/bitbull/audience/visitor"
                 <pathelement location="${jlib}/"/>
                 <pathelement location="${jlib}/storage_if.jar"/>
                 <pathelement location="${jlib}/util.jar"/>

I'm very specifically compiling only the files in a single directory, because
I have subpackages which have different dependencies in their classpath,
and I need to enforce these rigidly. Could this be preventing Ant from
determining the package?


            The Wildest party on the Net is on!

View raw message