ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Haspel" <aa...@eredyne.com>
Subject RE: how to jar a package
Date Fri, 01 Jun 2001 18:17:26 GMT
Your basedir should be the parent directory of utils, not "utils" itself.
If you try jarring from the command line you will see the same result.

Aaron

-----Original Message-----
From: Suu Quan [mailto:squan@wwc.com]
Sent: Friday, June 01, 2001 2:12 PM
To: ANT user group
Subject: how to jar a package


Novice speaking

I'm trying to make a jar file out of a 'package' all under the subdirectory
utils.
This is my task (my current directory is the top project directory, and
utils is a child of it)

<target name="utils" >
    <javac srcdir="utils" includes="**/*.java" excludes="**/test/**"
        classpathref="classpath"/>
    <jar jarfile="${lib}/utils.jar"
         basedir="utils"
         includes="**/*.class"
    />
</target>

what I get is

ldap/NumberString.class
ldap/IntegerString.class
net/
net/TcpServer.class
Log.class
Int.class

        instead of

utils/ldap/NumberString.class
utils/ldap/IntegerString.class
utils/net/
utils/net/TcpServer.class
utils/Log.class
utils/Int.class

    How do I correct it, so that other can refer tothe jar file as

import utils.*;


Mime
View raw message