You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by BH...@microgeneral.com on 2002/03/02 00:13:23 UTC
jar multiple directories
Hi,
I have a file structure which looks something like:
ClientApp
ClientApp\App1\*.class
ClientApp\App2\*.class
...
ClientApp\AppX\*.class
and I want to iterate over all the sub-directories within ClientApp and
create a jar file for each one,
using the name of the directory for the name of the jar file.
So at the end of this process, I have
App1.jar (contains App1\*.class files)
App2.jar (contains App2\*.class files)
...
AppX.jar (contains AppX\*.class files)
How can I do this? I know I will need to use a fileset, but I don't know
how to gleam the name of the jar file from name of the directory.
Thanks for any suggestions.
Beth