ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey E Care <>
Subject Re: howto include files only - without dirtree
Date Tue, 09 Aug 2005 10:59:52 GMT
Jeffrey E. Care (
WebSphere v7 Release Engineer
WebSphere Build Tooling Lead (Project Mantis)

Sándor Tamás <> 
08/09/2005 04:40 AM
Please respond to
"Ant Users List"


howto include files only - without dirtree

Hi Ant-users!

I've checked the Directory-based Tasks page and googled the web to find 
any solution to my problem, without success.
E.g. I have a dir tree like this:

  |- jarlibname1
  |      |-file1.jar
  |      |-file2.jar
  |- jarlibname2

What I like to do is include all the jar files found under /lib so the 
result should look like:

  |- file1.jar
  |- file2.jar
  |- file3.jar
  |- file4.jar

The problem is with the
    dir="lib" includes="**/*.jar"
expression , because this way subdirs also included. A workaround is to 
list all my subdirs as includes, but it's not nice, and not recursively 

Is there a solution to this issue?

Thomas Sandor

To unsubscribe, e-mail:
For additional commands, e-mail:

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