ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajkumar Seth <>
Subject RE: Why does <javac> recompile even source not modified?
Date Tue, 22 May 2001 11:36:07 GMT
I tried this based on the  example code and it does not seem to do anything.

   <javac srcdir="${build.classes}"

Does anyone have an example of a JAVAC that builds 2 files in a package with
more than 2 files and then builds the rest of the package?

-----Original Message-----
From: Suu Quan []
Sent: 2001 May 22 00:52
Subject: Re: Why does <javac> recompile even source not modified?

----- Original Message ----- 
From: "Diane Holt" <>
To: <>
Sent: Monday, May 21, 2001 3:16 PM
Subject: Re: Why does <javac> recompile even source not modified?

> Use:
> <target name="utils">
>   <javac srcdir="/stp" destdir="/stp"
>        includes="util/*.java" 
>        excludes="util/"
>        verbose="yes/>
> </target>
> IOW: The "srcdir" attr should point up to where the package hierarchy
> begins, and the filenames should begin with the package hierarchy -- it's
> how it matches source-files to class-files.


Man, you're good. Fixed my build file and it worked.
What do I owe you so far?

The contents of this message and any attachments are confidential and
are intended solely for the attention and use of the addressee only.
Information contained in this message may be subject to legal, 
professional or other privilege or may otherwise be protected by other
legal rules. This message should not be copied or forwarded to any other
person without the express permission of the sender. If you are not the
intended recipient you are not authorised to disclose, copy, distribute
or retain this message or any part of it.

If you have received this message in error, please notify the sender by
telephone (+44-20-7002-4000) and destroy the original message.

We reserve the right to monitor all e-mail messages passing through our

View raw message