Examples of TfsScmProviderRepository


Examples of org.apache.maven.scm.provider.tfs.TfsScmProviderRepository

    }

    public void testCommandline()
        throws Exception   
    {
        TfsScmProviderRepository repo = getScmProviderRepository();
        Commandline cmd = new TfsStatusCommand().createCommand( repo, getScmFileSet() ).getCommandline();
        String expected =
            "tf status -login:user,password -workspace:workspace -recursive -format:detailed " + repo.getServerPath();
        assertCommandLine( expected, getWorkingDirectory(), cmd );
    }
View Full Code Here

Examples of org.apache.maven.scm.provider.tfs.TfsScmProviderRepository

{

    public void testCommandline()
        throws Exception   
    {
        TfsScmProviderRepository repo = getScmProviderRepository();
        Commandline cmd =
            new TfsCheckInCommand().createCommand( repo, getScmFileSet(), "A comment of many words" ).getCommandline();
        String expected =
            "tf checkin -login:user,password -noprompt -comment:\"A comment of many words\" " + getFileList();
        assertCommandLine( expected, getWorkingDirectory(), cmd );
View Full Code Here

Examples of org.apache.maven.scm.provider.tfs.TfsScmProviderRepository

{

    public void testCommandline()
        throws Exception
    {
        TfsScmProviderRepository repo = getScmProviderRepository();
        Commandline cmd = new TfsBranchCommand().createCommand( repo, getScmFileSet(), "branch" ).getCommandline();
        String path = getScmFileSet().getBasedir().getAbsolutePath();
        String expected = "tf branch -login:user,password " + path + " -checkin branch";
        assertCommandLine( expected, getWorkingDirectory(), cmd );
    }
View Full Code Here

Examples of org.apache.maven.scm.provider.tfs.TfsScmProviderRepository

    extends ScmTestCase
{

    protected TfsScmProviderRepository getScmProviderRepository()
    {
        return new TfsScmProviderRepository( "http://tfsurl", "user", "password", "serverpath", "workspace" );
    }
View Full Code Here

Examples of org.apache.maven.scm.provider.tfs.TfsScmProviderRepository

{

    public void testCommandline()
        throws Exception   
    {
        TfsScmProviderRepository repo = getScmProviderRepository();
        ScmRevision rev = new ScmRevision( "revision" );
        Commandline cmd = new TfsUpdateCommand().createCommand( repo, getScmFileSet(), rev ).getCommandline();
        String path = repo.getServerPath();
        String expected = "tf get -login:user,password " + path + " -version:Crevision";
        assertCommandLine( expected, getWorkingDirectory(), cmd );
    }
View Full Code Here

Examples of org.apache.maven.scm.provider.tfs.TfsScmProviderRepository

{

    protected StatusScmResult executeStatusCommand( ScmProviderRepository r, ScmFileSet f )
        throws ScmException
    {
        TfsScmProviderRepository tfsRepo = (TfsScmProviderRepository) r;

        TfsCommand command = createCommand( tfsRepo, f );
        ChangedFileConsumer out = new ChangedFileConsumer( getLogger() );
        ErrorStreamConsumer err = new ErrorStreamConsumer();
       
View Full Code Here

Examples of org.apache.maven.scm.provider.tfs.TfsScmProviderRepository

    }

    public void testCommandline()
        throws Exception   
    {
        TfsScmProviderRepository repo = getScmProviderRepository();
        Commandline cmd = new TfsListCommand().createCommand( repo, getScmFileSet(), true ).getCommandline();
        String expected = "tf dir -login:user,password -recursive " + getFileList();
        assertCommandLine( expected, getWorkingDirectory(), cmd );
    }
View Full Code Here

Examples of org.apache.maven.scm.provider.tfs.TfsScmProviderRepository

{

    public void testCommandline()
        throws Exception   
    {
        TfsScmProviderRepository repo = getScmProviderRepository();
        Commandline cmd = new TfsUnEditCommand().createCommand( repo, getScmFileSet() ).getCommandline();
        String expected = "tf undo -login:user,password " + getFileList();
        assertCommandLine( expected, getWorkingDirectory(), cmd );
    }
View Full Code Here

Examples of org.apache.maven.scm.provider.tfs.TfsScmProviderRepository

    protected CheckOutScmResult executeCheckOutCommand( ScmProviderRepository r, ScmFileSet f, ScmVersion v,
                                                        boolean recursive )
        throws ScmException
    {
        TfsScmProviderRepository tfsRepo = (TfsScmProviderRepository) r;
        String url = tfsRepo.getServerPath();
        String tfsUrl = tfsRepo.getTfsUrl();
        String workspace = tfsRepo.getWorkspace();

        // Try creating workspace
        boolean workspaceProvided = workspace != null && !workspace.trim().equals( "" );
        if ( workspaceProvided )
        {
View Full Code Here

Examples of org.apache.maven.scm.provider.tfs.TfsScmProviderRepository

    }

    public int executeUnmapCommand( ScmProviderRepository r, ScmFileSet f )
        throws ScmException
    {
        TfsScmProviderRepository tfsRepo = (TfsScmProviderRepository) r;
        String url = tfsRepo.getServerPath();
        String workspace = tfsRepo.getWorkspace();
        ErrorStreamConsumer out = new ErrorStreamConsumer();
        ErrorStreamConsumer err = new ErrorStreamConsumer();
       
        TfsCommand command = new TfsCommand( "workfold", r, null, getLogger() );
        command.addArgument( "-workspace:" + workspace );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.