maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Bechler (JIRA)" <j...@codehaus.org>
Subject [jira] Created: (MNG-2662) SettingsBuilder internally converts network paths to local paths and is therefore preventing the use of network profiles
Date Thu, 16 Nov 2006 19:02:31 GMT
SettingsBuilder internally converts network paths to local paths and is therefore preventing
the use of network profiles
------------------------------------------------------------------------------------------------------------------------

                 Key: MNG-2662
                 URL: http://jira.codehaus.org/browse/MNG-2662
             Project: Maven 2
          Issue Type: Bug
          Components: Settings
    Affects Versions: 2.0.4
         Environment: Windows XP, Domain-Environment, Network User-Profile
            Reporter: Daniel Bechler
            Priority: Minor
         Attachments: patch.diff

I'm not sure if this is a bug or intended but the DefaultMavenSettingsBuilder converts paths
like "\\server\username\.m2\settings.xml" to "<Current Drive>:\server\username\.m2\settings.xml".
This prevented us from using the default user.home because our userprofiles are located on
another server and are referenced by "\\" network paths. It would've been quite complicated
to change the user.home system property for all developers, so we fixed the problem by removing
a regular expression that replaced double backslashes by only one, followed by calling "new
File(path).getAbsolutePath()" which added the current drive letter to the path and converted
it to a local path this way.

I don't know the reason for removing double backslashes from the beginning but at least i
didn't recognize any problems with my changes yet. It would be nice if somebody could tell
me what the regexp was intended for. I attached a patch to this posting and hope it helps!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message