ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Devon Hillard" <de...@atg.com>
Subject Re: how to jar a package
Date Fri, 01 Jun 2001 18:20:26 GMT
If you only want to include the files within utils, use your include filter
to select only files under the utils directory.

Regards,

Devon


----- Original Message -----
From: "Aaron Haspel" <aaron@eredyne.com>
To: <ant-user@jakarta.apache.org>
Sent: Friday, June 01, 2001 2:17 PM
Subject: RE: how to jar a package


> 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