ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: Jar file from Verbose Output
Date Tue, 03 Sep 2002 22:00:24 GMT
If it can, I never found out how, and I'll be happy to learn how to do it
from you. GenJar didn't pull in the few classes of BCEL.jar my own classes
depended upon, and I had to manually tell it which one I wanted (using a
trial and error approach, adding little by little the classes not found!!!):

Thanks to let me know how to achieve what you say is possible, starting from
the build.xml snippet below. Thanks, --DD

  <target name="jar"
          depends="compile, genjar">

    <delete file="jardump.jar"
            quiet="true" />

    <genjar jarfile="jardump.jar">
      <class name="JarApiWriter" />

        <pathelement location="classes" />
        <pathelement location="bcel.jar" />

        <include name="org.apache.bcel.Constants" />
        <include name="org.apache.bcel.classfile." />
        <include name="org.apache.bcel.util.ByteSequence" />


  </target><!-- jar -->

-----Original Message-----
From: Jesse Stockall [] 
Sent: Tuesday, September 03, 2002 4:42 PM
To: Ant Developers List
Subject: RE: Jar file from Verbose Output

On Tue, 2002-09-03 at 17:07, Dominique Devienne wrote:
> Sounds a little bit like GenJar which I used once in the past, except
> wouldn't pull in classes from dependent JARs. 

GenJar can pull in classes from other jars. You can include only the
required classes, or it you have a package that uses dynamic class
loading like log4j you can include the whole jar.

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

View raw message