Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 86863 invoked from network); 11 Feb 2003 22:01:21 -0000 Received: from unknown (HELO empburexch.burlington.emptoris.com) (63.111.224.162) by daedalus.apache.org with SMTP; 11 Feb 2003 22:01:21 -0000 Received: by empburexch.burlington.emptoris.com with Internet Mail Service (5.5.2653.19) id <1MYLAYWQ>; Tue, 11 Feb 2003 17:00:34 -0500 Message-ID: <15717BB71A5CD411A01600508BDCC2E2019393DB@empburexch.burlington.emptoris.com> From: "Ciramella, EJ" To: 'Ant Users List' Subject: RE: How to detect missing files when copying from a list of files ? Date: Tue, 11 Feb 2003 17:00:33 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C2D219.0025AE40" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C2D219.0025AE40 Content-Type: text/plain; charset="iso-8859-1" Could I ask for a little more detail? There may be other ways around your problem. What are you copying? Build.dir could be many things... Take a closer look at FileSet - "includesfile the name of a file; each line of this file is taken to be an include pattern. ". This means the includesfile simply is a suggestion as to what patterns you should include. If a file is missing, the copy isn't going to complain... -----Original Message----- From: Steve Allan [mailto:stevea@wrq.com] Sent: Tuesday, February 11, 2003 4:52 PM To: 'user@ant.apache.org' Subject: How to detect missing files when copying from a list of files? I'm having a recurring problem which I haven't been able to solve in Ant. As an example, say I have a file manifest which contains all the files I expect to have in my distribution. I copy that to a staging directory with copy and fileset: The problem is that if there are files in ${file.lst} that are missing (perhaps never built), fileset throws them out and copy never knows anything about them. It seems like would solve that problem, because it would pass all the file names to , and then would complain about the missing ones. But won't accept a filelist. I really need the task to fail if any file in ${file.lst} is not found in ${build.dir}. Is there a cookbook solution to this problem? -- Steve __ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org ------_=_NextPart_001_01C2D219.0025AE40--