org.apache.maven.plugins.release.scm
Interface ScmTranslator

All Known Implementing Classes:
CvsScmTranslator, SubversionScmTranslator

public interface ScmTranslator

Translate the SCM information after tagging/reverting to trunk.

Author:
Brett Porter

Field Summary
static java.lang.String ROLE
          Plexus Role.
 
Method Summary
 java.lang.String resolveTag(java.lang.String tag)
          Determine what tag should be added to the POM given the original tag and the new one.
 java.lang.String translateTagUrl(java.lang.String url, java.lang.String tag, java.lang.String tagBase)
          Take an URL and find the correct replacement URL for a given tag.
 

Field Detail

ROLE

static final java.lang.String ROLE
Plexus Role.

Method Detail

translateTagUrl

java.lang.String translateTagUrl(java.lang.String url,
                                 java.lang.String tag,
                                 java.lang.String tagBase)
Take an URL and find the correct replacement URL for a given tag.

Parameters:
url - the source URL
tag - the tag
tagBase - the tag base for providers that support it
Returns:
the replacement URL

resolveTag

java.lang.String resolveTag(java.lang.String tag)
Determine what tag should be added to the POM given the original tag and the new one.

Parameters:
tag - the new tag
Returns:
the tag to use, or null if the provider does not use tags


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.