Package org.apache.maven.scm.provider.tfs.command.consumer

Examples of org.apache.maven.scm.provider.tfs.command.consumer.ChangedFileConsumer


    protected void setUp()
        throws Exception
    {
        super.setUp();
        consumer = new ChangedFileConsumer( new DefaultLog() );
        defaultLocale = Locale.getDefault();
    }
View Full Code Here


        throws ScmException
    {
        TfsScmProviderRepository tfsRepo = (TfsScmProviderRepository) r;

        TfsCommand command = createCommand( tfsRepo, f );
        ChangedFileConsumer out = new ChangedFileConsumer( getLogger() );
        ErrorStreamConsumer err = new ErrorStreamConsumer();
       
        int status = command.execute( out, err );
        if ( status != 0 || err.hasBeenFed() )
        {
            return new StatusScmResult( command.getCommandString(), "Error code for TFS status command - " + status,
                                        err.getOutput(), false );
        }
        Iterator<ScmFile> iter = out.getChangedFiles().iterator();
        getLogger().debug( "Iterating" );
        while ( iter.hasNext() )
        {
            ScmFile file = (ScmFile) iter.next();
            getLogger().debug( file.getPath() + ":" + file.getStatus() );
        }
        return new StatusScmResult( command.getCommandString(), out.getChangedFiles() );
    }
View Full Code Here

        throws ScmException
    {
        TfsScmProviderRepository tfsRepo = (TfsScmProviderRepository) r;

        TfsCommand command = createCommand( tfsRepo, f );
        ChangedFileConsumer out = new ChangedFileConsumer( getLogger() );
        ErrorStreamConsumer err = new ErrorStreamConsumer();
       
        int status = command.execute( out, err );
        if ( status != 0 || err.hasBeenFed() )
        {
            return new StatusScmResult( command.getCommandString(), "Error code for TFS status command - " + status,
                                        err.getOutput(), false );
        }
        Iterator<ScmFile> iter = out.getChangedFiles().iterator();
        getLogger().debug( "Iterating" );
        while ( iter.hasNext() )
        {
            ScmFile file = (ScmFile) iter.next();
            getLogger().debug( file.getPath() + ":" + file.getStatus() );
        }
        return new StatusScmResult( command.getCommandString(), out.getChangedFiles() );
    }
View Full Code Here

TOP

Related Classes of org.apache.maven.scm.provider.tfs.command.consumer.ChangedFileConsumer

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.