
org.apache.maven.scm.command.checkin.CheckInScmResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-scm-api Show documentation
Show all versions of maven-scm-api Show documentation
The SCM API provides mechanisms to manage all SCM tools.
package org.apache.maven.scm.command.checkin;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import java.util.ArrayList;
import java.util.List;
import org.apache.maven.scm.ScmFile;
import org.apache.maven.scm.ScmResult;
/**
* @author Trygve Laugstøl
* @author Olivier Lamy
*
*/
public class CheckInScmResult
extends ScmResult
{
private static final long serialVersionUID = 954225589449445354L;
private List checkedInFiles;
private String scmRevision;
public CheckInScmResult( String commandLine, String providerMessage, String commandOutput, boolean success )
{
super( commandLine, providerMessage, commandOutput, success );
}
public CheckInScmResult( String commandLine, List checkedInFiles )
{
super( commandLine, null, null, true );
this.checkedInFiles = checkedInFiles;
}
/**
* @param commandLine
* @param checkedInFiles
* @param scmRevision
* @since 1.2
*/
public CheckInScmResult( String commandLine, List checkedInFiles, String scmRevision )
{
this( commandLine, checkedInFiles );
this.scmRevision = scmRevision;
}
public CheckInScmResult( List checkedInFiles, ScmResult result )
{
super( result );
this.checkedInFiles = checkedInFiles;
}
public List getCheckedInFiles()
{
if ( this.checkedInFiles == null )
{
this.checkedInFiles = new ArrayList();
}
return checkedInFiles;
}
/**
* @since 1.2
* @return can be null for some providers (implemented at least for svn)
*/
public String getScmRevision()
{
return scmRevision;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy