Hi 

I have to create a jar that includes other external jars. I want those
external jars to be present in the classpath.
For this I am using the <zipfileset> task. But the problem with the
'src' attribute of <zipfileset> is that I can mention just one jar in
the src attribute. But I have to include jars from a "lib" directory,
and src attribute does not take **/*.jar.

The script I have written is

<project name="myProject" default="main" basedir=".">
    <target name="main">
        <jar destfile="myProject.jar">
                <!--PROBLEM HERE :: In the src attribute I want to
include multiple jars-->
            <zipfileset src="myOwnJar.jar"/>
            <manifest>
                <attribute name="Built-By" value="${user.name}"/>
                <attribute name="Main-Class"
value="com.mycompany.gui.Main"/>
            </manifest>
        </jar>
    </target>
</project>

The lib folder has all the jars and I want to include those jars. Is
there any other way of doing this.
I tried with the <zipfileset> dir attribute but that includes the jar
and the jar is not present in the classpath.


Regards,

Archit

given enough eyeballs, all bugs are shallow





MASTEK
"Making a valuable difference"
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCO

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of 
Mastek Limited, unless specifically indicated to that effect. Mastek Limited 
does not accept any responsibility or liability for it. This e-mail and 
attachments (if any) transmitted with it are confidential and/or privileged and 
solely for the use of the intended person or entity to which it is addressed. 
Any review, re-transmission, dissemination or other use of or taking of any 
action in reliance upon this information by persons or entities other than the 
intended recipient is prohibited. This e-mail and its attachments have been 
scanned for the presence of computer viruses. It is the responsibility of the 
recipient to run the virus check on e-mails and attachments before opening 
them. If you have received this e-mail in error, kindly delete this e-mail from 
all computers.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


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

Reply via email to