Package org.apache.maven.scm

Examples of org.apache.maven.scm.ScmFile


        assertNotNull( files );

        assertEquals( 1, files.size() );

        ScmFile file1 = files.get( 0 );

        assertEquals( ScmFileStatus.CHECKED_IN, file1.getStatus() );

        assertPath( "/test-repo/check-in/Foo.java", file1.getPath() );

        CheckOutScmResult checkoutResult =
            getScmManager().checkOut( getScmRepository(), new ScmFileSet( getAssertionCopy() ) );

        assertResultIsSuccess( checkoutResult );
View Full Code Here


        {
            String path = file.getPath().replace( '\\', '/' );

            cl.createArg().setValue( path );

            addedFiles.add( new ScmFile( path, ScmFileStatus.ADDED ) );
        }

        if ( getLogger().isInfoEnabled() )
        {
            getLogger().info( "Executing: " + cl );
View Full Code Here

                continue;
            }
            String path = re.getParen( 1 );
            String verb = re.getParen( 2 );

            ScmFile scmfile = new ScmFile( path.substring( repoPath.length() + 1 ).trim(), PerforceVerbMapper
                .toStatus( verb ) );
            results.add( scmfile );
        }
        return results;
    }
View Full Code Here

            //Do nothing

            return;
        }

        addFile( new ScmFile( file, status ) );
       
        List<ChangeFile>
        changeFiles =
            Arrays.asList( new ChangeFile[] { new ChangeFile( line, Integer.valueOf( revision ).toString() ) } );
View Full Code Here

            throw new ScmException( "Error while executing command.", e );
        }

        for ( File f : files )
        {
            fileList.add( new ScmFile( f.getPath(), ScmFileStatus.TAGGED ) );
        }

        return new BranchScmResult( cl.toString(), fileList );
    }
View Full Code Here

        {
            String file = line.substring( 3 );
           
            status = ScmFileStatus.ADDED;
           
            createdDirs.add( new ScmFile( file, status ) );
        }       
        else
        {
            if ( logger.isInfoEnabled() )
            {
View Full Code Here

            //Do nothing

            return;
        }

        addFile( new ScmFile( file, status ) );
    }
View Full Code Here

            }

            return;
        }

        addedFiles.add( new ScmFile( file, status ) );
    }
View Full Code Here

            int i = 0;

            for ( Iterator<ScmFile> it = files.iterator(); it.hasNext(); i++ )
            {
                ScmFile scmFile = it.next();

                System.out.println( "" + i + ": " + scmFile );
            }

            fail( "Expected 4 files in the updated files list, was " + checkedOutFiles.size() );
View Full Code Here

       
        if ( !filtered )
        {
            for ( Iterator<ScmFile> ite = files.iterator(); ite.hasNext(); )
            {
                ScmFile file = ite.next();
                if ( !file.getStatus().equals( ScmFileStatus.DELETED )
                    && !new File( workingDirectory, file.getPath() ).isFile() )
                {
                    ite.remove();
                }
            }
View Full Code Here

TOP

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

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.