Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-307

Svn provider- file protocol with 3 slashes

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-rc1
    • 1.0
    • None
    • None

    Description

      I am trying to use the scm:svn within maven release plugin. Currently we access the svn repository via file://....

      If i use file://, then i get an error message from the scm plugin (scm url is invalid) as you can see in the sourcecode below.
      If i use file:///, then it will be accepted by the scm provider but i
      get an error from the svn command.

      Is it possible to change the implementation of the method AbstractSvnScmProvider.parseScmUrl( String scmSpecificUrl ) in order to
      accept (file://)

      ###################################

      private ScmUrlParserResult parseScmUrl( String scmSpecificUrl )
      {
      ScmUrlParserResult result = new ScmUrlParserResult();

      String url = scmSpecificUrl;

      // ----------------------------------------------------------------------
      // Do some sanity checking of the SVN url
      // ----------------------------------------------------------------------

      if ( url.startsWith( "file" ) )
      {
      if ( !url.startsWith( "file:///" ) && !url.startsWith( "file://localhost/" ) )

      { result.messages.add( "A svn 'file' url must be on the form 'file:///' or 'file://localhost/'." ); return result; }

      }

      ##############################

      Attachments

        Activity

          People

            evenisse Emmanuel Venisse
            e.jewabreh Ehab Jewabreh
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: