ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernier, Melanie" <melanie.bern...@sdm.de>
Subject Foreach loop in ant
Date Thu, 09 Aug 2001 13:47:04 GMT
Hi!

How can I do using ant:

Foreach File in Directory
  convert file.gif file.eps

I looked the Apply or ExecOn tasks.  I don't know how I can specify the name
of the output file (file.eps) using ant and the following code.

<target name="gif2eps">
  <execon executable="convert" >
    <fileset dir="/directory">
      <patternset>
        <exclude name="**/*.gif"/>
      </patternset>
    </fileset>
  </execon>
</target>

Any ideas?

Thanks!

Melanie.


Mime
View raw message