Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 50452 invoked from network); 9 Feb 2003 03:25:34 -0000 Received: from smtp-01.inode.at (HELO smtp.inode.at) (62.99.194.3) by daedalus.apache.org with SMTP; 9 Feb 2003 03:25:34 -0000 Received: from [80.109.223.69] (port=62993 helo=excelsior.starfleet.ufp) by smtp.inode.at with asmtp (Exim 4.10) id 18hi0X-0008Ts-00; Sun, 09 Feb 2003 04:19:53 +0100 Subject: Re: jar building problem From: Thomas Bauer Reply-To: bauer@xaidat.com To: Martin Cc: ANT User Mailingliste In-Reply-To: References: <1044749500.1720.6.camel@excelsior> <1044751008.3376.4.camel@excelsior> Content-Type: text/plain Organization: Message-Id: <1044761647.11326.24.camel@excelsior> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 09 Feb 2003 04:34:07 +0100 Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Martin! Am Fre, 2002-08-16 um 00.30 schrieb Martin: > Thomas- > [snip] > see http://ant.apache.org/manual/index.html Reading the last days over and over again :) > > Could I ask the question why you want to jar in a package for which the > manifest has no location? Sorry that I confused u with not telling u why I need this. My application launcher (jnlp) verifies a signed jar file if all files in it are signed. If one file is not signed, it rejects the jar file. If I want to have "all-permissions" security level on the client side, I need a signed jar-file. When I sign a jarfile using jarsigner, only the *.class files in the jar file get signed. When I verify a signed jar file using "jarsigner -verify -verbose" I see a "signed" flag only for the *.class files. So I need a jar without "directory-only" entries then signing it will work. I tried it on the command-line (Linux) with "jar cfm myjar.jar mymanifest.mf **/*.class" and it works and it includes only the class files. When I run it with ant I use: And it includes the directories. The only solution to this problem is executing jar using the ant task "exec" but I don't want this, because it wouldn't be platform independant. That's my problem ;-) regards, Thomas > > Regards, > > -Martin > > ----- Original Message ----- > From: "Thomas Bauer" > To: "Martin" > Cc: "Ant Users List" > 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 > > > > > > > > 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" > > > To: "ANT User Mailingliste" > > > 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 > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: ant-user-unsubscribe@jakarta.apache.org > > > > For additional commands, e-mail: ant-user-help@jakarta.apache.org > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: ant-user-unsubscribe@jakarta.apache.org > > > For additional commands, e-mail: ant-user-help@jakarta.apache.org > > -- > > Thomas Bauer > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: ant-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: ant-user-help@jakarta.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: ant-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: ant-user-help@jakarta.apache.org -- Thomas Bauer