[ https://issues.apache.org/jira/browse/SCM-139?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17960165#comment-17960165 ]
ASF GitHub Bot commented on SCM-139: ------------------------------------ jira-importer opened a new issue, #343: URL: https://github.com/apache/maven-scm/issues/343 **[Dennis Lundberg](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=denn...@apache.org)** opened **[SCM-139](https://issues.apache.org/jira/browse/SCM-139?redirect=false)** and commented There is a lot of code in different places, both in maven-scm and elsewhere, that checks and parses scm url:s. I propose that a utility class ScmUrlUtils be crated in maven-scm-api where such code (static methods) can be placed. The code there should not be scm provider specific. This should be accompanied by a test suite. This concept might also be applied to individual scm providers, e.g. there could be a CvsScmUrlUtils in maven-scm-provider-cvs. --- **Attachments:** - [SCM-139.zip](https://issues.apache.org/jira/secure/attachment/12718785/SCM-139.zip) (_97.28 kB_) - [SCM-139-2.zip](https://issues.apache.org/jira/secure/attachment/12718688/SCM-139-2.zip) (_5.08 kB_) - [ScmUrlUtils.java](https://issues.apache.org/jira/secure/attachment/12718735/ScmUrlUtils.java) (_3.07 kB_) > Create a utility class for scm url checking/parsing > --------------------------------------------------- > > Key: SCM-139 > URL: https://issues.apache.org/jira/browse/SCM-139 > Project: Maven SCM (Moved to GitHub Issues) > Issue Type: New Feature > Components: maven-scm-api > Reporter: Dennis Lundberg > Assignee: Dennis Lundberg > Priority: Major > Fix For: 1.0-beta-4 > > Attachments: SCM-139-2.zip, SCM-139.zip, ScmUrlUtils.java > > > There is a lot of code in different places, both in maven-scm and elsewhere, > that checks and parses scm url:s. I propose that a utility class ScmUrlUtils > be crated in maven-scm-api where such code (static methods) can be placed. > The code there should not be scm provider specific. This should be > accompanied by a test suite. > This concept might also be applied to individual scm providers, e.g. there > could be a CvsScmUrlUtils in maven-scm-provider-cvs. -- This message was sent by Atlassian Jira (v8.20.10#820010)