ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <stev...@iseran.com>
Subject Re: copying on files changed
Date Sat, 08 Dec 2001 02:31:55 GMT

----- Original Message -----
From: "Christopher Berry" <christopher.berry@etrade.com>
To: "Ant-User (E-mail)" <ant-user@jakarta.apache.org>
Sent: Friday, December 07, 2001 3:23 PM
Subject: copying on files changed


> Greetings,
>
> We are building many projects independently. Each of these projects build
> within their own project structure (i.e. they have their own /src and
/build
> directories). After compilation, the CLASS files are then copied from
/build
> into a central deployment area named whatever/classes. This all works well
> enough. (Note: we do not compile directly into /classes, or use separate
JAR
> files, for several reasons)
>
> So here's my problem. I would like to copy only those CLASS files which
are
> just compiled from /build into /classes. I think this is possible using
the
> <uptodate> task with an appropriate <mapper>. But I haven't yet gotten it
to
> work properly. I'm hoping that one of the Ant gurus on this list might
give
> me some guidance.

By default <copy> only copies files if they are newer than the destination.
So it should be all you need.


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


Mime
View raw message