List of usage examples for org.eclipse.jgit.api CleanCommand setDryRun
public CleanCommand setDryRun(boolean dryRun)
From source file:com.rimerosolutions.ant.git.tasks.CleanTask.java
License:Apache License
@Override public void doExecute() { try {// w w w. ja v a 2 s. c o m CleanCommand cleanCommand = git.clean(); if (!pathList.isEmpty()) { cleanCommand.setPaths(pathList); } cleanCommand.setDryRun(dryRun).setIgnore(ignore).setCleanDirectories(cleanDirectories).call(); } catch (Exception e) { throw new GitBuildException("Unexpected exception: " + e.getMessage(), e); } }