ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tassilo Horn <tass...@member.fsf.org>
Subject Run an ant task for each file in a directory
Date Thu, 06 Nov 2008 13:17:32 GMT
Hi all,

currently I have this target in my ant file:

--8<---------------cut here---------------start------------->8---
  <target name="generateschemas">
    <echo>generateschema started</echo>
    <java classname="de.uni_koblenz.jgralab.utilities.tgschema2java.TgSchema2Java" 
	  classpathref="classpath">
      <arg line="-f ${schema.dir}/MinimalSchema.tg -p ${src.dir}"/>
    </java>
    <java classname="de.uni_koblenz.jgralab.utilities.tgschema2java.TgSchema2Java" 
	  classpathref="classpath">
      <arg line="-f ${schema.dir}/citymapschema.tg -p ${src.dir}"/>
    </java>
    <echo>generateschemas finished</echo>
  </target>
--8<---------------cut here---------------end--------------->8---

What I really want is to execute the given `java' task for each and
every *.tg file in ${schema.dir}/.  How would I do that?

Bye,
Tassilo
-- 
GNU Emacs is a text editor for Über-Geeks.


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


Mime
View raw message