Examples of GitCommitJar


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

Examples of com.caucho.env.git.GitCommitJar

  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

Examples of com.caucho.env.git.GitCommitJar

  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

Examples of com.caucho.env.git.GitCommitJar

   * 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

Examples of com.caucho.env.git.GitCommitJar

   * 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

Examples of com.caucho.git.GitCommitJar

  public String deployJarContents(String tag,
                                  Path jar,
                                  HashMap<String,String> attributes)
    throws IOException
  {
    GitCommitJar commit = new GitCommitJar(jar);

    try {
      return deployJar(tag, commit, attributes);
    }
    finally {
      commit.close();
    }
  }
View Full Code Here

Examples of com.caucho.git.GitCommitJar

  public String deployJarContents(String tag,
                                  InputStream is,
                                  HashMap<String,String> attributes)
    throws IOException
  {
    GitCommitJar commit = new GitCommitJar(is);

    try {
      return deployJar(tag, commit, attributes);
    }
    finally {
      commit.close();
    }
  }
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.