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 2009/11/06 12:29:06 UTC
DO NOT REPLY [Bug 48152] New: Task ManifestClassPath fail to find
suitable relative path
https://issues.apache.org/bugzilla/show_bug.cgi?id=48152
Summary: Task ManifestClassPath fail to find suitable relative
path
Product: Ant
Version: 1.7.1
Platform: PC
OS/Version: Windows Vista
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
AssignedTo: notifications@ant.apache.org
ReportedBy: mirko.seifert@tu-dresden.de
When the ManifestClassPath task is used and the file set as 'jarfile' does not
share a common toplevel directory with of the paths an error (Can't find
suitable relative path to ...) is raised.
For example if jarfile is set to '/projects/projectXY/temp.jar' and one of the
paths is '/common/libs/libraryXY.jar' the error is raised.
I think this is a bug, since there is a suitable relative path, namely
'../../common/libs/libraryXY.jar'.
I'll attach a JUnit test case that reproduces the bug and contains some more
explaination.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 48152] Task ManifestClassPath fail to find
suitable relative path
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48152
mirko.seifert@tu-dresden.de changed:
What |Removed |Added
----------------------------------------------------------------------------
OS/Version|Windows Vista |Mac OS X 10.4
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 48152] Task ManifestClassPath fail to find
suitable relative path
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48152
mirko.seifert@tu-dresden.de changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #24499|0 |1
is obsolete| |
--- Comment #4 from mirko.seifert@tu-dresden.de 2010-01-07 04:28:03 UTC ---
Created an attachment (id=24814)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=24814)
A second version of the test case (must run on Unix or MAC!)
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 48152] Task ManifestClassPath fail to find
suitable relative path
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48152
--- Comment #1 from mirko.seifert@tu-dresden.de 2009-11-06 03:29:59 UTC ---
Created an attachment (id=24499)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=24499)
A test case reproducing the bug
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 48152] Task ManifestClassPath fail to find
suitable relative path
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48152
--- Comment #5 from Stefan Bodewig <bo...@apache.org> 2010-01-11 21:08:38 UTC ---
Hi Mirko,
running your tests against Ant's trunk doesn't cause any exceptions for me on
Linux - maybe it has been fixed by some other changes.
Ant 1.8.0RC1 is about to be released today, could you please try whether the
problem still occurs for you?
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 48152] Task ManifestClassPath fail to find
suitable relative path
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48152
--- Comment #7 from mirko.seifert@tu-dresden.de 2010-01-13 04:57:12 UTC ---
Hi Stefan,
I ran the test against the 1.8.0RC1 libraries of ANT and it works now.
Thanks!
Mirko
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 48152] Task ManifestClassPath fail to find
suitable relative path
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48152
mirko.seifert@tu-dresden.de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mirko.seifert@tu-dresden.de
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 48152] Task ManifestClassPath fail to find
suitable relative path
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48152
mirko.seifert@tu-dresden.de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
--- Comment #3 from mirko.seifert@tu-dresden.de 2010-01-07 04:27:03 UTC ---
Sorry, for the late reply. It took me some time to figure out whether setting
maxParentLevels to a higher value solves the problem.
The result is: It does not. More precisely it does fix the problem on Windows
machines, but not on Unix machines (where we initially discovered the bug, but
were not aware of the fact the the bug is OS-specific).
I'll attach a second version of the test case that shows the problem. It needs
to run on a Unix (or Mac).
Test case A shows that setting maxParentLevels to value that is too low,
results in the "Can't find suitable relative path" exception. I do not
understand why setting maxParentLevels is needed and why the default value is 2
instead of Integer.MAX_VALUE, but thats a different issues. Can you explain
that?
Test case B shows that setting maxParentLevels to the number of segments in the
path that is used as starting location results in an
ArrayIndexOutOfBoundException.
Test case C shows that setting maxParentLevels to a number greater than the
number of segments result in a NullPointerException.
Please let me know if further information is required.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 48152] Task ManifestClassPath fail to find
suitable relative path
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48152
--- Comment #6 from mirko.seifert@tu-dresden.de 2010-01-12 00:38:57 UTC ---
Yes, I will do so and get back to you as soon as possible.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 48152] Task ManifestClassPath fail to find
suitable relative path
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48152
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |1.8.0
--- Comment #8 from Stefan Bodewig <bo...@apache.org> 2010-01-16 22:32:33 UTC ---
Thank you for checking.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 48152] Task ManifestClassPath fail to find
suitable relative path
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48152
Stefan Bodewig <bo...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 48152] Task ManifestClassPath fail to find
suitable relative path
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48152
--- Comment #2 from Stefan Bodewig <bo...@apache.org> 2009-11-10 09:16:57 UTC ---
before I try to reproduce this, have you set maxParentLevels to a value that is
big enough for your case? It defaults to 2 and I don't see your testcode
bumping it to 3 which would be required to make the commented out example work.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.