Package org.apache.maven.scm

Examples of org.apache.maven.scm.ScmFileStatus


            {
                file = file.substring( this.workingDirectory.getAbsolutePath().length() + 1 );
            }
        }

        ScmFileStatus status;

        if ( line.startsWith( UPDATED_TO_REVISION_TOKEN ) )
        {
            String revisionString = line.substring( UPDATED_TO_REVISION_TOKEN.length() + 1, line.length() - 1 );
View Full Code Here


            //Strip away identifier
            trimmedLine = trimmedLine.substring( statusStr.length() );
            trimmedLine = trimmedLine.trim(); //one or more spaces
        }

        ScmFileStatus status = statusStr != null ? ( (ScmFileStatus) IDENTIFIERS.get( statusStr.intern() ) ) : null;
        doConsume( status, trimmedLine );
    }
View Full Code Here

            out.append( "Comment:" + entry.getComment() );

            for ( ChangeFile file : entry.getFiles() )
            {
                final ScmFileStatus action = file.getAction();
                if ( !summary.containsKey( action ) )
                {
                    summary.put( action, new AtomicInteger() );
                }
                summary.get( action ).incrementAndGet();
View Full Code Here

        if ( file.startsWith( getWorkingDirectory().getAbsolutePath() ) )
        {
            file = StringUtils.substring( file, getWorkingDirectory().getAbsolutePath().length() + 1 );
        }

        ScmFileStatus status;

        if ( line.startsWith( CHECKED_OUT_REVISION_TOKEN ) )
        {
            String revisionString = line.substring( CHECKED_OUT_REVISION_TOKEN.length() + 1, line.length() - 1 );
View Full Code Here

                    originalName = ORIG_FILE_PATTERN.getParen( 1 );
                    originalRev = ORIG_FILE_PATTERN.getParen( 2 );
                }
            }
            final String actionStr = FILE_PATTERN.getParen( 1 );
            final ScmFileStatus action;
            if ( "A".equals( actionStr ) )
            {
                //TODO: this may even change to MOVED if we later explore whole changeset and find matching DELETED
                action = originalRev == null ? ScmFileStatus.ADDED : ScmFileStatus.COPIED;
            }
View Full Code Here

        if ( StringUtils.isEmpty( line ) )
        {
            return;
        }

        ScmFileStatus status = null;

        String[] parts = line.split( "\\s", 6 );
        if ( parts.length != 6 )
        {
            logger.warn( "Skipping line because it doesn't contain the right status parameters: " + line );
View Full Code Here

            {
                return;
            }
            final String actionChar = fileRegexp.getParen( 1 );
            // action is currently not used
            final ScmFileStatus action;
            String name = fileRegexp.getParen( 2 );
            String originalName = null;
            String originalRevision = null;
            if ( "A".equals( actionChar ) )
            {
View Full Code Here

        if ( StringUtils.isEmpty( line ) )
        {
            return;
        }

        ScmFileStatus status = null;

        String file = null;

        if ( addedRegexp.match( line ) )
        {
View Full Code Here

            assertNotNull( entry.getFiles() );
            assertFalse( entry.getFiles().isEmpty() );

            for ( ChangeFile file : entry.getFiles() )
            {
                final ScmFileStatus action = file.getAction();
                if ( !summary.containsKey( action ) )
                {
                    summary.put( action, new AtomicInteger() );
                }
                summary.get( action ).incrementAndGet();
View Full Code Here

            //Strip away identifier
            trimmedLine = trimmedLine.substring( statusStr.length() );
            trimmedLine = trimmedLine.trim(); //one or more spaces
        }

        ScmFileStatus status = statusStr != null ? ( (ScmFileStatus) IDENTIFIERS.get( statusStr.intern() ) ) : null;
        doConsume( status, trimmedLine );
    }
View Full Code Here

TOP

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

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.