Examples of MkdirScmResult


Examples of org.apache.maven.scm.command.mkdir.MkdirScmResult

    public void testMkdirCommandMkdirUrl()
        throws Exception
    {
        ScmFileSet fileSet = new ScmFileSet( getWorkingCopy(), new File( getMissingDirectory() ) );
   
        MkdirScmResult result = getScmManager().mkdir( getScmRepository(), fileSet, "Mkdir message", false );
   
        assertResultIsSuccess( result );
   
        assertNotNull( result.getRevision() );
   
        ListScmResult listResult = getScmManager().list( getScmRepository(), fileSet, true, null );
   
        assertTrue( "Directory should have been found.", listResult.isSuccess() );
    }
View Full Code Here

Examples of org.apache.maven.scm.command.mkdir.MkdirScmResult

    public void testMkdirCommandDirAlreadyAdded()
        throws Exception
    {
        ScmFileSet fileSet = new ScmFileSet( getWorkingCopy(), new File( getMissingDirectory() ) );
   
        MkdirScmResult result = getScmManager().mkdir( getScmRepository(), fileSet, null, false );
   
        assertResultIsSuccess( result );
   
        assertNotNull( result.getRevision() );
   
        ListScmResult listResult = getScmManager().list( getScmRepository(), fileSet, true, null );
       
        assertTrue( "Directory should have been found.", listResult.isSuccess() );
               
        // add the directory again
        result = getScmManager().mkdir( getScmRepository(), fileSet, null, false );
   
        printOutputError( result );
       
        assertFalse( result.isSuccess() );
    }
View Full Code Here

Examples of org.apache.maven.scm.command.mkdir.MkdirScmResult

        ScmResult addResult = cmd.execute( repository, fileSet, parameters );

        if ( !addResult.isSuccess() )
        {
            return new MkdirScmResult( addResult.getCommandLine().toString(), "The cvs command failed.",
                                       addResult.getCommandOutput(), false );
        }
       
        List<ScmFile> addedFiles = new ArrayList<ScmFile>();
       
        for (File file : fileSet.getFileList())
        {
            ScmFile scmFile = new ScmFile( file.getPath(), ScmFileStatus.ADDED );
            addedFiles.add( scmFile );
        }

        return new MkdirScmResult( addResult.getCommandLine().toString(), addedFiles );
    }
View Full Code Here

Examples of org.apache.maven.scm.command.mkdir.MkdirScmResult

    public void testMkdirCommandMkdirUrl()
        throws Exception
    {
        ScmFileSet fileSet = new ScmFileSet( getWorkingCopy(), new File( getMissingDirectory() ) );

        MkdirScmResult result = getScmManager().mkdir( getScmRepository(), fileSet, "Mkdir message", false );

        assertResultIsSuccess( result );

        ListScmResult listResult = getScmManager().list( getScmRepository(), fileSet, true, null );
View Full Code Here

Examples of org.apache.maven.scm.command.mkdir.MkdirScmResult

    public void testMkdirCommandDirAlreadyAdded()
        throws Exception
    {
        ScmFileSet fileSet = new ScmFileSet( getWorkingCopy(), new File( getMissingDirectory() ) );

        MkdirScmResult result = getScmManager().mkdir( getScmRepository(), fileSet, "Mkdir message", false );

        assertResultIsSuccess( result );

        ListScmResult listResult = getScmManager().list( getScmRepository(), fileSet, true, null );

        assertTrue( "Directory should have been found.", listResult.isSuccess() );

        // add the directory again
        result = getScmManager().mkdir( getScmRepository(), fileSet, "Mkdir message", false );

        assertFalse( result.isSuccess() );

        printOutputError( result );
    }
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.