Package org.apache.maven.scm

Examples of org.apache.maven.scm.ScmTag


    extends ScmTestCase
{
    public void testCommandLineWithEmptyTag()
        throws Exception
    {
        testCommandLine( "scm:svn:http://foo.com/svn/trunk", new ScmTag( "" ),
                         "svn --non-interactive update " + getUpdateTestFile().getAbsolutePath() );
    }
View Full Code Here


    }

    public void testCommandLineWithWhitespaceTag()
        throws Exception
    {
        testCommandLine( "scm:svn:http://foo.com/svn/trunk", new ScmTag( "  " ),
                         "svn --non-interactive update " + getUpdateTestFile().getAbsolutePath() );
    }
View Full Code Here

    }

    public void testCommandLineWithBranchSameAsBase()
        throws Exception
    {
        testCommandLine( "scm:svn:http://foo.com/svn/tags/my-tag", new ScmTag( "tags/my-tag" ),
                         "svn --non-interactive switch http://foo.com/svn/tags/my-tag " +
                             getUpdateTestFile().getAbsolutePath() );
    }
View Full Code Here

        ScmVersion scmVersion = null;
        if ( tag != null )
        {
            // TODO: differentiate between tag and branch? Allow for revision?
            scmVersion = new ScmTag( tag );
        }
        return scmVersion;
    }
View Full Code Here

            ScmVersion scmStartVersion;
            ScmVersion scmEndVersion;
            if (repository.getProvider().equals("svn")) {
                getLog().warn("SVN does not support the required changelog operations");
            } else {
                scmStartVersion = startTag == null ? null : new ScmTag(startTag);
                scmEndVersion = endTag == null ? null : new ScmTag(endTag);
                ChangeLogScmResult changeLogScmResult;
                try {
                    changeLogScmResult =
                            provider.changeLog(repository, new ScmFileSet(basedir), scmStartVersion, scmEndVersion);
                } catch (ScmException e) {
View Full Code Here

            {
                return new ScmRevision( scmVersion );
            }
            else if ( "tag".equals( scmVersionType ) )
            {
                return new ScmTag( scmVersion );
            }
            else if ( "branch".equals( scmVersionType ) )
            {
                return new ScmBranch( scmVersion );
            }
View Full Code Here

            bufSet = new ChangeLogSet( bufEntries, startDate, endDate );
            String startVersion = attributes.getValue( "startVersion" );
            if ( startVersion != null )
            {
                bufSet.setStartVersion( new ScmTag( startVersion ) );
            }
            String endVersion = attributes.getValue( "endVersion" );
            if ( endVersion != null )
            {
                bufSet.setEndVersion( new ScmTag( endVersion ) );
            }
        }
    }
View Full Code Here

TOP

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

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.