Examples of UnEditScmResult


Examples of org.apache.maven.scm.command.unedit.UnEditScmResult

        try
        {
            ScmRepository repository = getScmRepository();

            UnEditScmResult result = getScmManager().unedit( repository, getFileSet() );

            checkResult( result );
        }
        catch ( IOException e )
        {
View Full Code Here

Examples of org.apache.maven.scm.command.unedit.UnEditScmResult

        List<ScmFile> files = new ArrayList<ScmFile>();
        for (File f : fileSet.getFileList())
        {
            files.add( new ScmFile(f.getPath(), ScmFileStatus.UNKNOWN) );
        }
        return new UnEditScmResult( "", files );
    }
View Full Code Here

Examples of org.apache.maven.scm.command.unedit.UnEditScmResult

        setEditScmResult( new EditScmResult( "", "", "", true ) );
        setExportScmResult( new ExportScmResult( "", "", "", true ) );
        setRemoveScmResult( new RemoveScmResult( "", "", "", true ) );
        setStatusScmResult( new StatusScmResult( "", "", "", true ) );
        setTagScmResult( new TagScmResult( "", "", "", true ) );
        setUnEditScmResult( new UnEditScmResult( "", "", "", true ) );
        setUpdateScmResult( new UpdateScmResult( "", "", "", true ) );
        setBlameScmResult( new BlameScmResult( "", "", "", true ) );
        setMkdirScmResult( new MkdirScmResult( "", "", "", true ) );
    }
View Full Code Here

Examples of org.apache.maven.scm.command.unedit.UnEditScmResult

            int exitCode = StarteamCommandLineUtils.executeCommandline( cl, consumer, stderr, getLogger() );

            if ( exitCode != 0 )
            {
                return new UnEditScmResult( cl.toString(), "The starteam command failed.", stderr.getOutput(), false );
            }
        }
        else
        {
            //edit only interested files already on the local disk
            for ( int i = 0; i < unlockFiles.size(); ++i )
            {
                ScmFileSet unlockFile = new ScmFileSet( fileSet.getBasedir(), (File) unlockFiles.get( i ) );
                Commandline cl = createCommandLine( repository, unlockFile );

                int exitCode = StarteamCommandLineUtils.executeCommandline( cl, consumer, stderr, getLogger() );

                if ( exitCode != 0 )
                {
                    return new UnEditScmResult( cl.toString(), "The starteam command failed.", stderr.getOutput(),
                                                false );
                }
            }
        }

        return new UnEditScmResult( null, consumer.getUnEditFiles() );

    }
View Full Code Here

Examples of org.apache.maven.scm.command.unedit.UnEditScmResult

            }
        }

        if ( consumer.isSuccess() )
        {
            return new UnEditScmResult( cl.toString(), consumer.getEdits() );
        }

        return new UnEditScmResult( cl.toString(), "Unable to revert", consumer.getOutput(), consumer.isSuccess() );
    }
View Full Code Here

Examples of org.apache.maven.scm.command.unedit.UnEditScmResult

        if ( getLogger().isWarnEnabled() )
        {
            getLogger().warn( "Provider " + this.getScmType() + " does not support unedit operation." );
        }

        return new UnEditScmResult( "", null, null, true );
    }
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.