Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 53374 invoked from network); 6 May 2004 23:31:09 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 6 May 2004 23:31:09 -0000 Received: (qmail 85856 invoked by uid 500); 6 May 2004 23:30:49 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 85825 invoked by uid 500); 6 May 2004 23:30:49 -0000 Mailing-List: contact user-help@ant.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 user@ant.apache.org Received: (qmail 85812 invoked from network); 6 May 2004 23:30:49 -0000 Received: from unknown (HELO relay4.nyc2.attens.com) (63.240.1.45) by daedalus.apache.org with SMTP; 6 May 2004 23:30:49 -0000 Received: from smtplink.capgroup.com (brog1.capgroup.com [148.107.10.36]) by relay4.nyc2.attens.com (8.11.6/8.9.3) with ESMTP id i46NUrh16672 for ; Thu, 6 May 2004 23:30:53 GMT Subject: RE: Passing files to a java target To: "Ant Users List" Cc: "'Ant Users List'" X-Mailer: Lotus Notes Release 5.0.8 June 18, 2001 Message-ID: From: Richard_Landon@capgroup.com Date: Thu, 6 May 2004 16:30:51 -0700 X-MIMETrack: Serialize by Router on BROLNG01/CAPITAL(Release 6.0.3|September 26, 2003) at 05/06/2004 04:30:53 PM MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N For more informatin, please see 1.6.5.3. from the TheElementsofAntStyle entry on the ant wiki (http://wiki.apache.org/ant/TheElementsOfAntStyle). You can then assign the value of reference id to a property and then pass that properties value to you program. Dominique Devienne To: "'Ant Users List'" Subject: RE: Passing files to a java target 05/06/2004 04:09 PM Please respond to "Ant Users List" > From: Jonathan Allen [mailto:allenj@spawar.navy.mil] > > I would like to send a list of filenames to a java target. i.e. You could pass , where the files property was constructed earlier from a (not a ) using . I believe a toString() method was finally implemented for FileSet, but if not, wrap the fileset in a , and it. Personally, I would use , and execute java itself. is exactly what you would want, except it doesn't work (directly) with Java programs. You need to execute the command-line Java launcher from , and pass in your main class name as the first arguments, etc... (The Ant team does not want to support Java programs directly in , arguing that you should be writing a custom Ant task instead.) I hope this helps. --DD --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org