ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lule Chen" <>
Subject Foreach and passing parameters
Date Thu, 10 Jul 2003 18:54:58 GMT
Hi, I have a foreach tasks as the following:

   <target name="build">
      <foreach target="compile_idl" param="file">
            <fileset dir="${env.VOB_DIR}/nt/common">
               <include name="*.idl"/>

   <target name="compile_idl">
      <echo message="compile ${file} by using ${env.ORBIXWEB_IDL}"/>
      <exec executable="${env.ORBIXWEB_IDL}">
         <arg line="-I  ${env.VOB_DIR} -I ${env.VOB_DIR} -jO
${env.GENERATEDJAVASRCDIR}/nt/common ${file}"/>

The foreach task iterates on each idl file in the directory and passes each
file name by the param "file" to the target. My question is, if I want to
pass additional parameters to the target, what should I do?

Thanks for your help!


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