Thomas- Looks like you'll have to build a manifest see <manifest> specifically omitting the section for ''mypackage" see http://ant.apache.org/manual/index.html (output manifest will be META-INF/MANIFEST.MF)
later on jar including the manifest file you've just created in META-INF/MANIFEST.MF and specifying includes for the package you desire to include (includes="mypackage/**") see http://ant.apache.org/manual/index.html Could I ask the question why you want to jar in a package for which the manifest has no location? Regards, -Martin ----- Original Message ----- From: "Thomas Bauer" <[EMAIL PROTECTED]> To: "Martin" <[EMAIL PROTECTED]> Cc: "Ant Users List" <[EMAIL PROTECTED]> Sent: Saturday, February 08, 2003 8:36 PM Subject: Re: jar building problem > Am Don, 2002-08-15 um 23.14 schrieb Martin: > > 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? > > No, I want the class files in mypackage too, but I just don't want an > entry "mypackage" in my jar archive. > e.g.: > contents of jar: > Top.class > Top2.class > mypackage/Sub.class > mypackage/OtherSub.class > > when I build it with ant I get: > Top.class > Top2.class > mypackage/ > mypackage/Sub.class > mypackage/OtherSub.class > > And I need the first sample - without the "mypackage/". > regards, > > Thomas > > > -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] > -- > 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]
