ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 51086] package mapper doesn't support the handledirsep attribute properly
Date Sun, 24 Apr 2011 01:39:12 GMT

Anthony Wat <> changed:

           What    |Removed                     |Added
         OS/Version|                            |All

--- Comment #1 from Anthony Wat <> 2011-04-23 21:39:10 EDT ---
(In reply to comment #0)
> The package mapper doesn't work well on windows in combination with
> handledirsep=true. The reason is that the package mapper replaces all
> File.separatorChar characters with '.', but when the handledirsep property was
> set to true, all directory separators are replace by '/' which is different
> than the File.separatorChar on Windows.

Do you have an actual test case for this problem?

As I understand, handledirsep is only relevant for the purpose of matching the
from pattern - it does not change the slashes in the part that matches the *.
For example:

from = org/apache/tools/ant/*
to = TEST-*Test.xml
handledirsep = true

The path name org\apache\tools\ant\util\ will still be
converted to util.PackageMapperTest.xml. So as long as the original path has
all '\' and not a mix of '\' and '/', the package mapper will still be able to
map the dir seps to '.', which seems to be the expected result.

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

View raw message