Return-Path: X-Original-To: apmail-ant-notifications-archive@minotaur.apache.org Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3880E9849 for ; Fri, 2 Dec 2011 21:02:11 +0000 (UTC) Received: (qmail 1946 invoked by uid 500); 2 Dec 2011 21:02:11 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 1923 invoked by uid 500); 2 Dec 2011 21:02:11 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 1915 invoked by uid 99); 2 Dec 2011 21:02:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2011 21:02:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.115] (HELO eir.zones.apache.org) (140.211.11.115) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Dec 2011 21:02:10 +0000 Received: by eir.zones.apache.org (Postfix, from userid 80) id B93F64F749; Fri, 2 Dec 2011 21:01:49 +0000 (UTC) From: bugzilla@apache.org To: notifications@ant.apache.org Subject: DO NOT REPLY [Bug 52227] manifestclasspath makes paths relative to build dir and not jarfile Date: Fri, 02 Dec 2011 21:01:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ant X-Bugzilla-Component: Core tasks X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tgkprog@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: notifications@ant.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Status Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://issues.apache.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 https://issues.apache.org/bugzilla/show_bug.cgi?id=52227 Tushar Kapila changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW --- Comment #3 from Tushar Kapila 2011-12-02 21:01:49 UTC --- lasspath-make: [echo] Start classpath: [echo] ../../Users/stefan.bodewig/Desktop/ant-test-manifest-cp/lib/log4j.jar [echo] end [echo] file :/run/anttestManifestClasspath/a-classpath3.jar [jar] Building MANIFEST-only jar: C:\run\anttestManifestClasspath\a-classpath3.jar [echo] Jar done BUILD SUCCESSFUL the path in the manifest is printed after [echo] Start classpath: ../../Users/stefan.bodewig/Desktop/ant-test-manifest-cp/lib/log4j.jar [echo] end This is your build path. expected is lib/log4j.jar at run time there will be no dir sers/stefan.bodewig/Desktop/ant-test-manifest-cp/lib/ The app & this classpath jar will be at d:/run/anttestManifestClasspath/a-classpath3.jar the lib dir will be d:/run/anttestManifestClasspath/lib so a relative path from d:/run/anttestManifestClasspath/a-classpath3.jar to d:/run/anttestManifestClasspath/lib/log4j.jar will be:- [echo] Start classpath: [echo] lib/log4j.jar [echo] end if you run the build process from d:\run\anttestManifestClasspath\ or simple change the basedir="" to basedir="d:/run/anttestManifestClasspath/" you will get expected output Note on windows when giving a path to java can give d:/run/anttestManifestClasspath/ or d:\run\anttestManifestClasspath\ only need to use \ before invoking jvm so have used both slashes .... -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.