[
https://issues.apache.org/jira/browse/SCM-287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17960912#comment-17960912
]
ASF GitHub Bot commented on SCM-287:
------------------------------------
jira-importer opened a new issue, #504:
URL: https://github.com/apache/maven-scm/issues/504
**[Arne
Degenring](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=arned)**
opened
**[SCM-287](https://issues.apache.org/jira/browse/SCM-287?redirect=false)** and
commented
A major limitation of the ClearCase plugin so far has been the missing
support for checking out from a tag. As a consequence, the Maven release plugin
could not be used. I implemented checking out from a tag, by supporting the
automatic creation of config specs.
The ClearCase SCM provider so far forced the user to create a config spec
file at an external location and provide a link to it within the SCM url, e.g.:
scm:clearcase:my_module_view:\\myserver\clearcase\configspecs\my_module.txt
This URL format is still supported as it gives the user a maximum
flexibility regarding config specs. However, it is quite unconvenient for users
to provide config spec files in an external location. And for checking out from
a tag, the config spec needs to be rewritten anyway. So, as an alternative, the
user now can provide a SCM url like the following:
scm:clearcase:my_module_view:load /MY_VOB/my/project/directory
Such an url contains one load rule instead of a config spec file location.
It is used by the ClearCase plugin to generate the following config spec in
case no version tag has been specified:
element * CHECKEDOUT
element * /main/LATEST
load <load_directory>
In case a tag has been specified, the following config spec is created:
element * CHECKEDOUT
element * \<tag>
element -directory * /main/LATEST
load <load_directory>
I expect these auto-generated config specs to be sufficient and appropriate
in at least 80% of the cases. The new functionality improves the ClearCase SCM
integration significantly in these cases (much easier to use and more
powerful). So, please apply the attached patch for
maven-scm-provider-clearcase, including a patch for the documentation site. As
the current URL format is still fully supported, this patch should not affect
existing builds.
(Afterwards, the maven-release-manager used by the Release plugin, can
easily be completed by a ClearCase-specific ScmTranslator implementation to
make the Release plugin fully usable with ClearCase.)
---
**Affects:** 1.0-rc1
**Attachments:**
-
[patch-maven-scm-provider-clearcase.txt](https://issues.apache.org/jira/secure/attachment/12718653/patch-maven-scm-provider-clearcase.txt)
(_14.88 kB_)
-
[patch-maven-scm-site.txt](https://issues.apache.org/jira/secure/attachment/12718882/patch-maven-scm-site.txt)
(_3.22 kB_)
**Issue Links:**
- [SCM-290](https://issues.apache.org/jira/browse/SCM-290) Improved
documentation for ClearCase SCM provider
- [MRELEASE-208](https://issues.apache.org/jira/browse/MRELEASE-208) Support
for ClearCase, and other SCMs that do checkout projects to subdirectories of
the checkout directory
(_**"is depended upon by"**_)
> ClearCase / Support for checking out from a tag and auto-creation of config
> specs
> ---------------------------------------------------------------------------------
>
> Key: SCM-287
> URL: https://issues.apache.org/jira/browse/SCM-287
> Project: Maven SCM (Moved to GitHub Issues)
> Issue Type: New Feature
> Components: maven-scm-provider-clearcase
> Affects Versions: 1.0-rc1
> Reporter: Arne Degenring
> Assignee: Emmanuel Venisse
> Priority: Major
> Fix For: 1.0-rc1
>
> Attachments: patch-maven-scm-provider-clearcase.txt,
> patch-maven-scm-site.txt
>
>
> A major limitation of the ClearCase plugin so far has been the missing
> support for checking out from a tag. As a consequence, the Maven release
> plugin could not be used. I implemented checking out from a tag, by
> supporting the automatic creation of config specs.
> The ClearCase SCM provider so far forced the user to create a config spec
> file at an external location and provide a link to it within the SCM url,
> e.g.:
> scm:clearcase:my_module_view:\\myserver\clearcase\configspecs\my_module.txt
> This URL format is still supported as it gives the user a maximum flexibility
> regarding config specs. However, it is quite unconvenient for users to
> provide config spec files in an external location. And for checking out from
> a tag, the config spec needs to be rewritten anyway. So, as an alternative,
> the user now can provide a SCM url like the following:
> scm:clearcase:my_module_view:load /MY_VOB/my/project/directory
> Such an url contains one load rule instead of a config spec file location. It
> is used by the ClearCase plugin to generate the following config spec in case
> no version tag has been specified:
>
> element * CHECKEDOUT
> element * /main/LATEST
> load <load_directory>
> In case a tag has been specified, the following config spec is created:
> element * CHECKEDOUT
> element * <tag>
> element -directory * /main/LATEST
> load <load_directory>
> I expect these auto-generated config specs to be sufficient and appropriate
> in at least 80% of the cases. The new functionality improves the ClearCase
> SCM integration significantly in these cases (much easier to use and more
> powerful). So, please apply the attached patch for
> maven-scm-provider-clearcase, including a patch for the documentation site.
> As the current URL format is still fully supported, this patch should not
> affect existing builds.
> (Afterwards, the maven-release-manager used by the Release plugin, can easily
> be completed by a ClearCase-specific ScmTranslator implementation to make the
> Release plugin fully usable with ClearCase.)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)