ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: Passing file list to a java program
Date Tue, 30 Sep 2003 09:28:55 GMT
Have you tried <pathconvert pathsep=" "/> ?

Jan

> -----Original Message-----
> From: tsmets@netscape.net [mailto:tsmets@netscape.net]
> Sent: Tuesday, September 30, 2003 11:27 AM
> To: user@ant.apache.org
> Subject: Passing file list to a java program 
> 
> 
> Hi,
> In our automated build we need to run a script from a third 
> party which works in the form :
> 
>  java -cp ${classpath} file_to_process_1 \
>                        file_to_process_2 \
>                        file_to_process_3 \
>                        file_to_process_4 \
>                        file_to_process_5 \
>                        file_to_process_6
> 
> I, of course, have NO access to the source code, but I'd like 
> to automated this task. I have tried undreds of <path> / 
> FileSets / ...
> 
> This is the closeth I have come to :
>         <fileset id="my.file.set" dir="${basedir}">     
>                 <include name="**/*.ilr" />
>                 <exclude name="**/*.txt" />
>         </fileset>
>         <pathconvert pathsep="&quot; " 
>                      property="my.file.list" 
>                      refid="my.file.set">       
>                 <map from="${basedir}"
>                      to="${basedir}"/>  
>         </pathconvert>
> 
> but I still get the files as ONE big argument instead of a 
> list which could successfully be used as in : 
> 
> 
>         public static final void main (String[] args)
>         {       
>                 for (int i = 0; i < args.length; ++i)         
>               System.out.println (" " + i + " : " + args[i] );
>         }
> 
> 
> 
> Thank you for any help !
> 
> \T,
> 
> 
> 
> -- 
>  
> Thomas SMETS 
> rue J. Wytsmanstraat 62
> 1050 Brussels
> 
> 
> __________________________________________________________________
> McAfee VirusScan Online from the Netscape Network.
> Comprehensive protection for your entire computer. Get your 
> free trial today!
> http://channels.netscape.com/ns/computing/mcafee/index.jsp?pro
mo=393397

Get AOL Instant Messenger 5.1 free of charge.  Download Now!
http://aim.aol.com/aimnew/Aim/register.adp?promo=380455

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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message