A bit off topic. But I am curious. How does one make a Jar of Jars work?? I
tried doing this -- building a Jar of all of the third party Jars I use and
putting this on the Classpath, and the embedded Jars were not unpacked. What
am I doing wrong?? Do I need to use a specialized ClassLoader??

As far as this question is concerned, I think you can use::
 
    <jar jarfile="root.jar">
        <fileset dir="subproject1" includes="**/*.jar"/>
    </jar>

Thanks,
-- Chris 

 -----Original Message-----
 From: Wiedmann, Jochen [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 03, 2002 6:24 AM
 To: '[EMAIL PROTECTED]'
 Subject: Building a Fileset dynamically
 
 
 
 
 Hi,
 
 I have a set of directories/subprojects, each of
 them creating a JAR file. In the root project I
 want to collect them all into a single JAR file,
 for example:
 
    <jar jarfile="root.jar">
      <fileset src="subproject1/subproject1.jar"/>
      <fileset src="subproject1/subproject2.jar"/>
      <fileset src="subproject1/subproject3.jar"/>
    </jar>
 
 The list will be growing rapidly. So I woud like
 to build the list dynamically. Is this possible?
 
 Btw, that brings up another, more general question:
 I'd like to run a certain Ant task for any of
 a list of directories and/or files. How to do that?
 
 
 Thanks,
 
 Jochen
 
 --
 To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to