ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Joshua" <daniel.jos...@gridnode.com>
Subject How to pass a fileset as parameter
Date Tue, 15 Jul 2003 09:31:55 GMT
Hi all,

Is there a way to pass a fileset as a parameter?

I been using the below method, however there is a problem with it now
as it also causes all other references to be passed as well.

  ...
    <fileset id="db.sqlscripts.fileset"
             dir="${dbscript.dir}" 
             includes="${patch*.sql}"
             excludes="${excludes}"/>
    <antcall target="record.sqlscripts" inheritRefs="true"/>
  ...

  <target name="record.sqlscripts">
    <foreach target="record.sqlscript"
             param="sqlscript.file" 
             inheritall="true">
      <path>
        <fileset refid="db.sqlscripts.fileset"/>
      </path>
    </foreach>
  </target>

Regards,
Daniel


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


Mime
View raw message