maven-scm-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: maven-scm/maven-scm-api/src/main/java/org/apache/maven/scm/manager DefaultScmManager.java ScmManager.java
Date Thu, 30 Dec 2004 05:50:36 GMT
brett       2004/12/29 21:50:36

  Modified:    maven-scm-api/src/main/java/org/apache/maven/scm/manager
                        DefaultScmManager.java ScmManager.java
  Added:       maven-scm-api/src/main/java/org/apache/maven/scm/command/add
                        AddScmResult.java
  Log:
  add add command to the SCM manager API
  
  Revision  Changes    Path
  1.1                  maven-scm/maven-scm-api/src/main/java/org/apache/maven/scm/command/add/AddScmResult.java
  
  Index: AddScmResult.java
  ===================================================================
  package org.apache.maven.scm.command.add;
  
  /*
   * Copyright 2001-2004 The Apache Software Foundation.
   *
   * Licensed 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 org.apache.maven.scm.ScmResult;
  
  import java.util.List;
  
  /**
   * @author <a href="mailto:brett@apache.org">Brett Porter</a>
   * @version $Id: AddScmResult.java,v 1.1 2004/12/30 05:50:36 brett Exp $
   */
  public class AddScmResult
      extends ScmResult
  {
      private List addedFiles;
  
      public AddScmResult( String providerMessage, String commandOutput, boolean success )
      {
          super( providerMessage, commandOutput, success );
      }
  
      public AddScmResult( List addedFiles )
      {
          super( null, null, true );
  
          this.addedFiles = addedFiles;
      }
  
      public List getAddedFiles()
      {
          return addedFiles;
      }
  }
  
  
  
  1.9       +12 -1     maven-scm/maven-scm-api/src/main/java/org/apache/maven/scm/manager/DefaultScmManager.java
  
  Index: DefaultScmManager.java
  ===================================================================
  RCS file: /home/cvs/maven-scm/maven-scm-api/src/main/java/org/apache/maven/scm/manager/DefaultScmManager.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- DefaultScmManager.java	30 Dec 2004 02:12:52 -0000	1.8
  +++ DefaultScmManager.java	30 Dec 2004 05:50:36 -0000	1.9
  @@ -27,6 +27,7 @@
   import org.apache.maven.scm.command.checkout.CheckOutScmResult;
   import org.apache.maven.scm.command.tag.TagScmResult;
   import org.apache.maven.scm.command.update.UpdateScmResult;
  +import org.apache.maven.scm.command.add.AddScmResult;
   import org.apache.maven.scm.provider.AbstractScmProvider;
   import org.apache.maven.scm.provider.ScmProvider;
   import org.apache.maven.scm.provider.ScmProviderRepository;
  @@ -191,6 +192,16 @@
           ScmResult scmResult = execute( CommandNameConstants.CHANGE_LOG, repository, fileSet,
parameters );
   
           return (ChangeLogScmResult) checkScmResult( ChangeLogScmResult.class, scmResult
);
  +    }
  +
  +    public AddScmResult add( ScmRepository repository, ScmFileSet fileSet )
  +        throws ScmException
  +    {
  +        CommandParameters parameters = new CommandParameters();
  +
  +        ScmResult scmResult = execute( CommandNameConstants.ADD, repository, fileSet, parameters
);
  +
  +        return (AddScmResult) checkScmResult( AddScmResult.class, scmResult );
       }
   
       // ----------------------------------------------------------------------
  
  
  
  1.6       +5 -1      maven-scm/maven-scm-api/src/main/java/org/apache/maven/scm/manager/ScmManager.java
  
  Index: ScmManager.java
  ===================================================================
  RCS file: /home/cvs/maven-scm/maven-scm-api/src/main/java/org/apache/maven/scm/manager/ScmManager.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ScmManager.java	24 Dec 2004 03:04:47 -0000	1.5
  +++ ScmManager.java	30 Dec 2004 05:50:36 -0000	1.6
  @@ -23,6 +23,7 @@
   import org.apache.maven.scm.command.checkout.CheckOutScmResult;
   import org.apache.maven.scm.command.tag.TagScmResult;
   import org.apache.maven.scm.command.update.UpdateScmResult;
  +import org.apache.maven.scm.command.add.AddScmResult;
   import org.apache.maven.scm.repository.ScmRepository;
   import org.apache.maven.scm.repository.ScmRepositoryException;
   
  @@ -60,5 +61,8 @@
           throws ScmException;
   
       ChangeLogScmResult changeLog( ScmRepository repository, ScmFileSet fileSet, Date startDate,
Date endDate, int numDays, String branch )
  +        throws ScmException;
  +
  +    AddScmResult add( ScmRepository repository, ScmFileSet fileSet )
           throws ScmException;
   }
  
  
  

Mime
View raw message