Hi all, I'm new to ant, so I might be missing something fairly obvious. My problem: * I have a lib/ directory full of .jar files * I have 2 patternsets for some .class files that I want to put into two new jar files.
After a bit of googling I have this: <target name="foo"> <foreach target="bar" param="jar"> <path> <fileset dir="path" includes=" *.jar"/> </path> </foreach> </target> <target name="bar"> <jar destfile="foo.jar"> <zipfileset src="${jar}"> <patternset refid="pattern_client"/> <patternset refid="pattern_ear"/> </zipfileset> </jar> </target> Obviously, it doesn't quite work (and is ugly already). I could try to collect the .class files (zipfilesets) and jar them up afterwards (how?). But most probably there's a much better way to do this in the first place - please advise. Thank you --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org