Thomas-

Assuming dist is set to distribution directory and build property is set to
the build directory

jars all files in the ${build}/classes directory into a file called app.jar
in the ${dist}/lib directory. Files with the name *.class are included.
files with name mypackage are excluded

  <jar destfile="${dist}/lib/app.jar"
       basedir="${build}/classes"
       includes="**/*.class"       excludes="mypackage"
  />Ok?-M----- Original Message -----
From: "Thomas Bauer" <[EMAIL PROTECTED]>
To: "ANT User Mailingliste" <[EMAIL PROTECTED]>
Sent: Saturday, February 08, 2003 8:11 PM
Subject: jar building problem


> Hi!
>
> When I build a jar with ant's task "jar" it includes entries for the
> directories (packages) in my jar. (like "mypackage/")
> How could I avoid this?
> So I only want *.class but no entries without "class" at the end.
> regards
>
> Thomas Bauer
> --
> Thomas Bauer <[EMAIL PROTECTED]>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

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

Reply via email to