Package org.eclipse.jgit.api

Examples of org.eclipse.jgit.api.CleanCommand


        public void run(IProgressMonitor monitor) throws InvocationTargetException,
            InterruptedException {
          monitor.beginTask(UIText.CleanRepositoryPage_findingItems, IProgressMonitor.UNKNOWN);

          Git git = Git.wrap(repository);
          CleanCommand command = git.clean().setDryRun(true);
          command.setCleanDirectories(cleanDirectories);
          command.setIgnore(!includeIgnored);
          try {
            final Set<String> paths = command.call();

            getShell().getDisplay().syncExec(new Runnable() {
              public void run() {
                cleanTable.setInput(paths);
              }
View Full Code Here


        public void run(IProgressMonitor monitor) throws InvocationTargetException,
            InterruptedException {
          monitor.beginTask(UIText.CleanRepositoryPage_cleaningItems, IProgressMonitor.UNKNOWN);

          Git git = Git.wrap(repository);
          CleanCommand command = git.clean().setDryRun(false);
          command.setCleanDirectories(cleanDirectories);
          command.setIgnore(!includeIgnored);
          command.setPaths(itemsToClean);
          try {
            command.call();
          } catch (GitAPIException ex) {
            Activator.logError("cannot call clean command!", ex); //$NON-NLS-1$
          }

          try {
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.api.CleanCommand

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.