Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 45237 invoked from network); 19 Oct 2006 08:50:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Oct 2006 08:50:47 -0000 Received: (qmail 95776 invoked by uid 500); 19 Oct 2006 08:50:40 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 95743 invoked by uid 500); 19 Oct 2006 08:50:39 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 95732 invoked by uid 99); 19 Oct 2006 08:50:39 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Oct 2006 01:50:39 -0700 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [193.109.238.66] (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Oct 2006 01:50:38 -0700 Received: from z011100.bk.fin.local (z011104.bk.fin.local [172.18.101.140]) by dnsinet.rzf-nrw.de (8.13.8/8.13.8) with ESMTP id k9J8oElg005043 for ; Thu, 19 Oct 2006 10:50:14 +0200 Received: from z011134.bk.fin.local ([130.11.7.134]) by z011100.bk.fin.local with Microsoft SMTPSVC(6.0.3790.0); Thu, 19 Oct 2006 10:50:15 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: AW: Using path/refid for manifest classpath Date: Thu, 19 Oct 2006 10:50:15 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Using path/refid for manifest classpath Thread-Index: AcbzUUZxL75j+G8WRbqhyNRdp+CNdQACcQNQ From: To: X-OriginalArrivalTime: 19 Oct 2006 08:50:15.0578 (UTC) FILETIME=[98AE6FA0:01C6F35B] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N For changing the backslash to slash, just set the dirsep-attribute on = pathconvert. For a better way ... there was something DD said ... oh yes: the new = (1.7) task ... Jan =20 >-----Urspr=FCngliche Nachricht----- >Von: Lars Monsees [mailto:l.monsees@atlantisgmbh.de]=20 >Gesendet: Donnerstag, 19. Oktober 2006 09:35 >An: user@ant.apache.org >Betreff: Using path/refid for manifest classpath > >Hello, > >I just started using ANT within Eclipse. I have an application=20 >that gets deployed as a JAR file. >To construct the classpath within the manifest, I first stated=20 >all used libs manually in the build.xml but thought that there=20 >has to be a better solution to this. > >So, I now use a path that gets converted via pathconvert to=20 >remove the preceding basedir (second "-->"). This works but=20 >the manifest contains a backslash in the classpath:=20 >"Class-Path: lib\app-shared-0.3.0.jar". > >Here are parts of my build.xml: > > > > > > > > > description=3D"compile the source"> > > > >--> classpathref=3D"external.lib"/> > > > > description=3D"generate the jarfile"> > > > > > > > > > value=3D"${user.name}"/> > value=3D"${jar.mainclass}"/> > >--> value=3D"${dingens}"/> > > > manifest=3D"${jar.manifest}"/> > > > > >Although the JAR works I would like to know if there is a=20 >better way. I already searched with google, in the faqs and in=20 >the wiki. > > >Cheers >Lars > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For=20 >additional commands, e-mail: user-help@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org