ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Suu Quan" <sq...@wwc.com>
Subject how to jar a package
Date Fri, 01 Jun 2001 18:11:59 GMT
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