Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 98269 invoked from network); 8 Dec 2001 02:37:31 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 8 Dec 2001 02:37:31 -0000 Received: (qmail 19914 invoked by uid 97); 8 Dec 2001 02:37:31 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 19898 invoked by uid 97); 8 Dec 2001 02:37:30 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 19881 invoked from network); 8 Dec 2001 02:37:29 -0000 Message-ID: <7A2D33263A119742B8D90CDB2318F26A07D881@ntserver2.kmv.com> From: "Ma, Jian" To: 'Ant Users List' Subject: RE: copying on files changed Date: Fri, 7 Dec 2001 18:37:22 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N my experience with copy is that if the destination file exists already, it doesn't do anything even if you've made changes to the src file(It could be I didn't set some attribute correctly). I used to solve this problem. You can define dependent relationship between src and target files. Whenever src files got changed, ant detects it and remove all the target files to force copy to regenerate them. Jian"Chuck" Ma KMV LLC 1620 Montgomery St. Suite 140 San Francisco, CA 94111 415-352-1157(w) -----Original Message----- From: Steve Loughran [mailto:steve_l@iseran.com] Sent: Friday, December 07, 2001 6:32 PM To: Ant Users List Subject: Re: copying on files changed ----- Original Message ----- From: "Christopher Berry" To: "Ant-User (E-mail)" 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 > task with an appropriate . 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 only copies files if they are newer than the destination. So it should be all you need. -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: