Package org.apache.maven.scm

Examples of org.apache.maven.scm.ScmRevision



    public void testCommandLineWithStartVersion()
        throws Exception
    {
        testCommandLine( "scm:git:http://foo.com/git", null, new ScmRevision( "1" ), null,
                         "git whatchanged --date=iso 1.."
                         + " -- " + workingDirectory );
    }
View Full Code Here


    }

    public void testCommandLineWithStartVersionAndEndVersion()
        throws Exception
    {
        testCommandLine( "scm:git:http://foo.com/git", null, new ScmRevision( "1" ), new ScmRevision( "10" ),
                         "git whatchanged --date=iso 1..10"
                         + " -- " + workingDirectory );
    }
View Full Code Here

    }

    public void testCommandLineWithStartVersionAndEndVersionEquals()
        throws Exception
    {
        testCommandLine( "scm:git:http://foo.com/git", null, new ScmRevision( "1" ), new ScmRevision( "1" ),
                         "git whatchanged --date=iso 1..1"
                         + " -- " + workingDirectory );
    }
View Full Code Here

    }

    public void testCommandLineWithStartVersionAndEndVersionAndBranch()
        throws Exception
    {
        testCommandLine( "scm:git:http://foo.com/git", new ScmBranch( "my-test-branch" ), new ScmRevision( "1" ), new ScmRevision( "10" ),
                         "git whatchanged --date=iso 1..10 my-test-branch"
                         + " -- " + workingDirectory );
    }
View Full Code Here

        ScmRepository repository = scmManager.makeScmRepository( scmUrl );

        GitScmProviderRepository gitRepository = (GitScmProviderRepository) repository.getProviderRepository();

        Commandline cl =
            GitCheckOutCommand.createCommandLine( gitRepository, workingDirectory, new ScmRevision( revision ) );

        assertCommandLine( commandLine, workingDirectory, cl );
    }
View Full Code Here

        throws Exception
    {
        ScmFileSet fileSet = new ScmFileSet( new File( "." ), new File( "." ) );

        Commandline cl = SvnListCommand.createCommandLine( getSvnRepository( scmUrl ), fileSet, recursive,
                                                           new ScmRevision( revision ) );

        assertCommandLine( commandLine + " http://foo.com/svn/trunk/.",
                           new File( System.getProperty( "java.io.tmpdir" ) ), cl );
    }
View Full Code Here

            return new ScmTag( version );
        }

        if ( "revision".equals( versionType ) )
        {
            return new ScmRevision( version );
        }

        throw new MojoExecutionException( "Unknown '" + versionType + "' version type." );
    }
View Full Code Here

        ScmRepository repository = getScmManager().makeScmRepository( scmUrl );
        PerforceScmProviderRepository svnRepository = (PerforceScmProviderRepository) repository
            .getProviderRepository();
        Commandline cl = PerforceCheckOutCommand.createCommandLine( svnRepository, workingDirectory,
                                                                    new ScmRevision( "somelabel" ), "test-test-maven" );

        assertCommandLine( commandLine, null, cl );
    }
View Full Code Here

    private static final String cmdPrefix = "p4 -d " + workingDirectory.getAbsolutePath();

    public void testGetCommandLine()
        throws Exception
    {
        testCommandLine( new ScmRevision( "somelabel" ), null, cmdPrefix + " diff2 -u ...@somelabel ...@now" );
    }
View Full Code Here

    }

    public void testGetCommandLineWithRevs()
        throws Exception
    {
        testCommandLine( new ScmRevision( "somelabel" ), new ScmRevision( "someend" ),
                         cmdPrefix + " diff2 -u ...@somelabel ...@someend" );
    }
View Full Code Here

TOP

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

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.