This is really just an ant question, but I can't find a way to do this one really useful thing. I'm betting someone else has seen the same need and hopefully solved the problem.
Here goes:
How do you wildcard arguments to the java task? I keep seeing things like this:
Code:
<java classname="org.hibernate.auction.bench.client.BenchmarkSql" fork="true" dir="${classes.dir}">
<classpath refid="lib.class.path"/>
<classpath location="${classes.dir}"/>
<arg value="${mapping.home}/foo.hbm.xml" />
<arg value="${mapping.home}/bar.hbm.xml" />
</java>
and what I really want to do is something like this:
Code:
<java classname="org.hibernate.auction.bench.client.BenchmarkSql" fork="true" dir="${classes.dir}">
<classpath refid="lib.class.path"/>
<classpath location="${classes.dir}"/>
<arg value="${mapping.home}/**/*.hbm.xml" />
</java>
That way I could generate new mapping files and just let the ant task find and build based on them. I wouldn't have to shadow the new files in the ant task. The java task won't take filesets, and I can't get a refid in there either. Ant keeps failing at that point. Has anyone figured out how to do this?