[ 
http://jira.codehaus.org/browse/SCM-368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=135836#action_135836
 ] 

Joerg Schaible commented on SCM-368:
------------------------------------

Note, that the following snippet makes wrong assumptions:

{code}
        if ( settings.isUseCygwinPath() )
        {
            workingDir = "/cygdrive/" + workingDir;
            workingDir = StringUtils.replace( workingDir, ":", "" );
            workingDir = StringUtils.replace( workingDir, "\\", "/" );
        }
{code}

"/cygdrive" may not exist at all. The cygdrive prefix can be set to anything. 
See for example on my system:

{noformat}
$ mount --show-cygdrive-prefix
Prefix              Type         Flags
/mnt                system       binmode
{noformat}

Cygwin users set this also often to "/dev" or even "/" (although not 
recommended). The cygdrive prefix is currently stored in Windows registry only, 
so you will have to retrieve it calling an external utility.


> Windows path length limitations can be overcome by feeding an absolute path 
> to SVN
> ----------------------------------------------------------------------------------
>
>                 Key: SCM-368
>                 URL: http://jira.codehaus.org/browse/SCM-368
>             Project: Maven SCM
>          Issue Type: Improvement
>          Components: maven-scm-api
>    Affects Versions: 1.0
>         Environment: Any Windows machine
>            Reporter: Kurt Tometich
>            Assignee: Emmanuel Venisse
>            Priority: Minor
>             Fix For: 1.1
>
>
> When calling Subversion with relative paths there is a limit of 255 
> characters to the path length.  If you call Subversion with an absolute path 
> that no longer applies and you now have access to 32K chars.  I have tried 
> this myself and it does work.  Try feeding SVN a path that is relative and is 
> over 255 chars.  It will not be able to complete the transaction.  Now, try 
> to the same path again only as an absolute path and it will successfully 
> complete the transaction.  Here is a link to the forum where I found this 
> information: http://en-us.www.mozilla.com/en-US/firefox/2.0.0.4/firstrun/.

-- 
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

        

Reply via email to