ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <>
Subject Re: When to compile or not to compile that is the question?
Date Thu, 08 Feb 2001 09:00:52 GMT
--- "M.A.Dunphy" <> wrote:
> As I'm new to ant/java, could somebody help explain why when I run a
> task in ant, the .java files always get compiled even if they are not
> edited/changed since the last time the .class file was created?

It's most likely due to how you're pointing to where the source-files are
located. You need to specify "srcdir" as the directory path one directory
element -before- where the package hierarchy begins. For example, if your
directory structure is /workspace/main/com/foo/..., "srcdir" should point
to "/workspace/main". If you specifically include files, they should be
pointed to starting at "com" (eg., <include name="com/foo/"/>).



Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!

View raw message