ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BHechan...@microgeneral.com
Subject jar multiple directories
Date Fri, 01 Mar 2002 23:13:23 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message