Package com.caucho.env.git

Examples of com.caucho.env.git.GitCommitJar


  public String commitArchive(CommitBuilder commit,
                              Path jar)
  {
    commit.validate();
   
    GitCommitJar gitCommit = null;

    try {
      gitCommit = new GitCommitJar(jar);
     
      String tag = commit.getId();
     
      return deployJar(tag, gitCommit, commit.getAttributes());
    }
    catch (IOException e) {
      throw new RepositoryException(e);
    }
    finally {
      if (gitCommit != null)
        gitCommit.close();
    }
  }
View Full Code Here


  public String commitArchive(CommitBuilder commit,
                              InputStream is)
  {
    commit.validate();
   
    GitCommitJar gitCommit = null;

    try {
      gitCommit = new GitCommitJar(is);
     
      String tag = commit.getId();
     
      return deployJar(tag, gitCommit, commit.getAttributes());
    }
    catch (IOException e) {
      throw new RepositoryException(e);
    }
    finally {
      if (gitCommit != null)
        gitCommit.close();
    }
  }
View Full Code Here

  public String commitPath(CommitBuilder commit,
                           Path path)
  {
    commit.validate();
   
    GitCommitJar gitCommit = null;

    try {
      gitCommit = new GitCommitJar(path);
     
      String tag = commit.getId();
     
      return deployJar(tag, gitCommit, commit.getAttributes());
    }
    catch (IOException e) {
      throw new RepositoryException(e);
    }
    finally {
      if (gitCommit != null)
        gitCommit.close();
    }
  }
View Full Code Here

   * adds the contents recursively.
   */
  @Override
  public String addArchive(Path path)
  {
    GitCommitJar commit = null;

    try {
      commit = new GitCommitJar(path);
     
      return addArchive(commit);
    } catch (IOException e) {
      throw new RepositoryException(e);
    } finally {
      if (commit != null)
        commit.close();
    }
  }
View Full Code Here

   * Adds a path to the repository.  If the path is a directory,
   * adds the contents recursively.
   */
  public String addArchive(InputStream is)
  {
    GitCommitJar commit = null;

    try {
      commit = new GitCommitJar(is);
     
      return addArchive(commit);
    } catch (IOException e) {
      throw new RepositoryException(e);
    } finally {
      if (commit != null)
        commit.close();
    }
  }
View Full Code Here

TOP

Related Classes of com.caucho.env.git.GitCommitJar

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.