Package org.apache.maven.scm.manager.plexus

Examples of org.apache.maven.scm.manager.plexus.DefaultScmManager


        if ( wagon == null )
        {
            wagon = (ScmWagon) super.getWagon();

            DefaultScmManager scmManager = (DefaultScmManager) wagon.getScmManager();

            if ( getScmProvider() != null )
            {
                scmManager.setScmProvider( getScmId(), getScmProvider() );

                providerClassName = getScmProvider().getClass().getName();
            }
            else
            {
                providerClassName = scmManager.getProviderByType( getScmId() ).getClass().getName();
            }

            wagon.setCheckoutDirectory( getCheckoutDirectory() );
        }
    }
View Full Code Here


      String repositoryLocationToUse) {
    CreateMojo mojo = new CreateMojo();
    String urlScm = "scm:git:file://" + repositoryLocationToUse;
    mojo.setUrlScm(urlScm);
    mojo.setScmDirectory(new File(repositoryLocationToUse));
    ScmManager scmManager = new DefaultScmManager();
    scmManager.setScmProvider("git", new GitExeScmProvider());

    mojo.setScmManager(scmManager);
    try {
      String scmBranch = mojo.getScmBranch();
      assertEquals(branchExpectedToFind, scmBranch);
View Full Code Here

        if ( wagon == null )
        {
            wagon = (ScmWagon) super.getWagon();

            DefaultScmManager scmManager = (DefaultScmManager) wagon.getScmManager();

            if ( getScmProvider() != null )
            {
                scmManager.setScmProvider( getScmId(), getScmProvider() );

                providerClassName = getScmProvider().getClass().getName();
            }
            else
            {
                providerClassName = scmManager.getProviderByType( getScmId() ).getClass().getName();
            }

            wagon.setCheckoutDirectory( getCheckoutDirectory() );
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.maven.scm.manager.plexus.DefaultScmManager

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.