Package org.eclipse.jgit.api

Examples of org.eclipse.jgit.api.AddCommand.addFilepattern()


      FileUtils.writeContent(new File(newProject.dir, ".gitignore"), sb.toString());
     
      AddCommand add = git.add();
      add.addFilepattern("build.xml");
      add.addFilepattern("build.moxie");
      add.addFilepattern(".gitignore");
      if (newProject.eclipse.includeProject()) {
        add.addFilepattern(".project")
      }
      if (newProject.eclipse.includeClasspath()) {
        // MOXIE_HOME relative dependencies in .classpath
View Full Code Here


      AddCommand add = git.add();
      add.addFilepattern("build.xml");
      add.addFilepattern("build.moxie");
      add.addFilepattern(".gitignore");
      if (newProject.eclipse.includeProject()) {
        add.addFilepattern(".project")
      }
      if (newProject.eclipse.includeClasspath()) {
        // MOXIE_HOME relative dependencies in .classpath
        add.addFilepattern(".classpath")
      }
View Full Code Here

      if (newProject.eclipse.includeProject()) {
        add.addFilepattern(".project")
      }
      if (newProject.eclipse.includeClasspath()) {
        // MOXIE_HOME relative dependencies in .classpath
        add.addFilepattern(".classpath")
      }
        if (newProject.idea.includeProject()) {
            add.addFilepattern(".project");
        }
        if (newProject.idea.includeClasspath()) {
View Full Code Here

      if (newProject.eclipse.includeClasspath()) {
        // MOXIE_HOME relative dependencies in .classpath
        add.addFilepattern(".classpath")
      }
        if (newProject.idea.includeProject()) {
            add.addFilepattern(".project");
        }
        if (newProject.idea.includeClasspath()) {
            // MOXIE_HOME relative dependencies in .iml
            add.addFilepattern("*.iml");
        }
View Full Code Here

        if (newProject.idea.includeProject()) {
            add.addFilepattern(".project");
        }
        if (newProject.idea.includeClasspath()) {
            // MOXIE_HOME relative dependencies in .iml
            add.addFilepattern("*.iml");
        }
      try {
        add.call();
        CommitCommand commit = git.commit();
        PersonIdent moxie = new PersonIdent("Moxie", "moxie@localhost");
View Full Code Here

                    if(isWindows)
                    {
                        pomPath = StringUtils.replace(pomPath,"\\","/");   
                    }
                   
                    add.addFilepattern(pomPath);
                }
                add.call();
                git.commit().setMessage(message).call();
            }
        }
View Full Code Here

    public void add(String filePattern) {

        AddCommand add = git.add();
        DirCache cache;
        try {
            cache = add.addFilepattern(filePattern).call();
            updateCache(cache);
        } catch (NoFilepatternException e) {
            throw new IllegalStateException("Unable to add file to the Git cache", e);
        } catch (IOException e) {
            throw new IllegalStateException("Unable to add file to the Git cache", e);
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.