ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen McConnell" <mcconn...@dpml.net>
Subject RE: Code synchronisation problem
Date Wed, 09 Aug 2006 18:04:12 GMT
 

> -----Original Message-----
> From: David Corley (AT/LMI) [mailto:david.corley@ericsson.com] 
> Sent: Wednesday, 9 August 2006 6:42 PM
> To: Ant Users List
> Subject: Code synchronisation problem
> 
> Hey,
> 	I have some "hand-written" classes and some 
> idl-generated source in two seperated directories. Some of 
> the source in both of the directories has the same file/class 
> name, and as I need to compile them together, I get 
> "duplicate class" errors. What I would like to do is compare 
> the "hand-written" source directory to the generated source 
> directory, and where there are common files/names remove 
> those files from only the generated source directory. I guess 
> it's similar to the Ant <sync> task, but that task seems to 
> work the other way around, i.e., the files in the target 
> directory that DON'T match get removed.

Why not copy the generated sources to a new directory, then copy the
hand-written classes to the same directory using the overwrite option then
compile the consolidated collection?

/Steve.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message