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: Sending multiple arguments to the <java> task
Date Thu, 17 Jul 2003 05:12:42 GMT
Use a fileset to get all IDL files
    <fileset id="IDL_FS" dir="${IDL_DIR}/**/*.idl"/>
and convert that to a normal property, but separated by space.
    <pathconvert property="IDL_FILES" refid="IDL_FS" pathsep=" "/>
Then you can give all idl-files to the parser
    ...
        <arg line="${IDL_FILES}"/>
    ...
But you have do use 'line' attribute here. With 'value' all spaces are
masked.
(not tested)


Jan

> -----Original Message-----
> From: Leonardo Barros [mailto:leobarros@email.com]
> Sent: Wednesday, July 16, 2003 5:23 PM
> To: ant-user@jakarta.apache.org
> Subject: Sending multiple arguments to the <java> task
> 
> 
> Hi,
> 
> I'm using a parser class that verifies some IDL files I need for 
> CORBA.
> 
> The tags I'm using (which works great) are the following:
> 
> 	<java classname="org.jacorb.idl.parser">
> 		<classpath>
> 			<pathelement path="${JACORB_JAR}"/>
> 		</classpath>
> 		<arg value="${IDL_DIR}/sga-daemon.idl"/>
> 		<arg value="${IDL_DIR}/sga-manager.idl"/>
> 		<arg value="${IDL_DIR}/wio.idl"/>
> 	</java>
> 
> This works fine, but what if I have hundreds of file to parse? I'd 
> like to use something like a <fileset> with a *.idl
> <include> in 
> order to give it as a parameter to the <java> task. But I
> couldn't 
> find an easy way to do it? Is it feasible? Without having to create 
> my own <java> task?
> 
> -- 
> __________________________________________________________
> Sign-up for your own FREE Personalized E-mail at Mail.com
> http://www.mail.com/?sr=signup
> 
> CareerBuilder.com has over 400,000 jobs. Be smarter about 
> your job search
> http://corp.mail.com/careers
> 
> 
> ---------------------------------------------------------------------
> 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