You could always mange your files ahead of compiling.  For example, you
could copy everything from the first directory into a temp directory,
then copy everything from the second directory into the temp directory
overwriting existing files, then compile from the temp directory.

Ben

-----Original Message-----
From: David Alves [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 27, 2007 2:18 PM
To: Ant Users List
Subject: filename collisions when compiling

I have two directories of source files that I want to compile. One of
them has 

A.java

B.java

C.java

 

the other one has 

 

A.java

 

The version of A in the second directory is different from the version
in the first directory. Is there set up my javac task so that it always
takes source files from the second directory if they are present there,
but takes them from the first directory if they are not present? Thanks
in advance for your help.

 

Regards,

David Alves

********************************************************************************************
This message, including any attachments, contains confidential information 
intended 
for a specific individual and purpose, and is protected by law. If you are not 
the intended 
recipient, please contact the sender immediately by reply e-mail and destroy 
all copies.
You are hereby notified that any disclosure, copying, or distribution of this 
message, or
the taking of any action based on it, is strictly prohibited.

TIAA-CREF
********************************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to