You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2013/06/03 12:16:24 UTC

[Bug 55049] New: Task ManifestClassPath translates JAR's directory to '/' instead of '.'

https://issues.apache.org/bugzilla/show_bug.cgi?id=55049

            Bug ID: 55049
           Summary: Task ManifestClassPath translates JAR's directory to
                    '/' instead of '.'
           Product: Ant
           Version: 1.9.1
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
          Assignee: notifications@ant.apache.org
          Reporter: gvt.public@gmail.com

Created attachment 30381
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30381&action=edit
Small build.xml to reproduce the bug.

The ManifestClassPath task improperly translates the JAR's parent directory to
'/', where the expected result is '.' (cf. attached build.xml to reproduce).

NOTE: The same beavior has been observed with other Ant version: 1.7.1, 1.8.1
and 1.8.4 (on Windows and Linux with different JVM).

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 55049] Task ManifestClassPath translates JAR's directory to '/' instead of '.'

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55049

Grégoire Vatry <gv...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gvt.public@gmail.com

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 55049] Task ManifestClassPath translates JAR's directory to '/' instead of '.'

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55049

Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED
   Target Milestone|---                         |1.9.4

--- Comment #2 from Stefan Bodewig <bo...@apache.org> ---
I took a sligjtly different approach with svn revision 1554524 - and turned
your testcase into an antunit test.

Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 55049] Task ManifestClassPath translates JAR's directory to '/' instead of '.'

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55049

--- Comment #1 from Grégoire Vatry <gv...@gmail.com> ---
Created attachment 30403
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30403&action=edit
Proposed patch (with unit test)

With the patch applied, the <ManifestClasspath> task returns "./" for a
classpath element that corresponds to the directory of the jarfile attribute.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 55049] Task ManifestClassPath translates JAR's directory to '/' instead of '.'

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=55049

Grégoire Vatry <gv...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

-- 
You are receiving this mail because:
You are the assignee for the bug.