Package org.apache.maven.scm

Examples of org.apache.maven.scm.ScmTagParameters


     * {@inheritDoc}
     */
    public TagScmResult tag( ScmRepository repository, ScmFileSet fileSet, String tagName )
        throws ScmException
    {
        return tag( repository, fileSet, tagName, new ScmTagParameters() );
    }
View Full Code Here


        if ( StringUtils.isNotEmpty( message ) )
        {
            parameters.setString( CommandParameter.MESSAGE, message );
        }

        ScmTagParameters scmTagParameters = new ScmTagParameters( message );

        parameters.setScmTagParameters( CommandParameter.SCM_TAG_PARAMETERS, scmTagParameters );

        return tag( repository.getProviderRepository(), fileSet, parameters );
    }
View Full Code Here

     */
    protected ScmResult executeTagCommand( ScmProviderRepository repository, ScmFileSet fileSet, String tagName,
                                           String message )
        throws ScmException
    {
        return executeTagCommand( repository, fileSet, tagName, new ScmTagParameters( message ) );
    }
View Full Code Here

    public ScmResult executeCommand( ScmProviderRepository repository, ScmFileSet fileSet, CommandParameters parameters )
        throws ScmException
    {
        String tagName = parameters.getString( CommandParameter.TAG_NAME );

        ScmTagParameters scmTagParameters = parameters.getScmTagParameters( CommandParameter.SCM_TAG_PARAMETERS );

        String message = parameters.getString( CommandParameter.MESSAGE, null );

        if ( message != null )
        {
            // if message was passed by CommandParameter.MESSAGE then use it.
            scmTagParameters.setMessage( message );
        }

        if ( scmTagParameters.getMessage() == null )
        {
            // if message hasn't been passed nor by ScmTagParameters nor by CommandParameter.MESSAGE then use default.
            scmTagParameters.setMessage( "[maven-scm] copy for tag " + tagName );
        }

        return executeTagCommand( repository, fileSet, tagName, scmTagParameters );
    }
View Full Code Here

     * {@inheritDoc}
     */
    public TagScmResult tag( ScmRepository repository, ScmFileSet fileSet, String tagName, String message )
        throws ScmException
    {
        ScmTagParameters scmTagParameters = new ScmTagParameters( message );
        return this.getProviderByRepository( repository ).tag( repository, fileSet, tagName, scmTagParameters );
    }
View Full Code Here

        throws Exception
    {
        File messageFile = File.createTempFile( "maven-scm", "commit" );
        messageFile.deleteOnExit();

        ScmTagParameters scmTagParameters = new ScmTagParameters();
        scmTagParameters.setRemoteTagging( true );
        testCommandLine( "scm:svn:https://foo.com/svn/trunk", "svntag", messageFile, "user",
                         "svn --username user --no-auth-cache --non-interactive copy --file " + messageFile.getAbsolutePath()
                             + " https://foo.com/svn/trunk https://foo.com/svn/tags/svntag", scmTagParameters );
    }   
View Full Code Here

        throws Exception
    {
        File messageFile = File.createTempFile( "maven-scm", "commit" );
        messageFile.deleteOnExit();

        ScmTagParameters scmTagParameters = new ScmTagParameters();
        scmTagParameters.setRemoteTagging( true );
        scmTagParameters.setScmRevision( "12" );
        testCommandLine( "scm:svn:https://foo.com/svn/trunk", "svntag", messageFile, "user",
                         "svn --username user --no-auth-cache --non-interactive copy --file " + messageFile.getAbsolutePath()
                             + " --revision 12 https://foo.com/svn/trunk https://foo.com/svn/tags/svntag",
                         scmTagParameters );
    }   
View Full Code Here

    protected ScmResult executeTagCommand( ScmProviderRepository scmProviderRepository, ScmFileSet fileSet, String tag,
                                           String message )
        throws ScmException
    {
        return executeTagCommand( scmProviderRepository, fileSet, tag, new ScmTagParameters( message ) );
    }
View Full Code Here

{
   
    public ScmResult executeTagCommand( ScmProviderRepository repo, ScmFileSet fileSet, String tag, String message )
        throws ScmException
    {
        ScmTagParameters scmTagParameters = new ScmTagParameters( message );
        // force false to preserve backward comp
        scmTagParameters.setRemoteTagging( false );
        return executeTagCommand( repo, fileSet, tag, scmTagParameters );
    }
View Full Code Here

    {
        // NPE free
        if (scmTagParameters == null)
        {
            getLogger().debug( "SvnTagCommand :: scmTagParameters is null create an empty one" );
            scmTagParameters = new ScmTagParameters();
            scmTagParameters.setRemoteTagging( false );
         
        }
        else
        {
View Full Code Here

TOP

Related Classes of org.apache.maven.scm.ScmTagParameters

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.