com.googlecode.svntask.command.Cleanup Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of svntask-core Show documentation
Show all versions of svntask-core Show documentation
Contains the actual code for the svntask project.
The newest version!
package com.googlecode.svntask.command;
import java.io.File;
import org.apache.tools.ant.BuildException;
import com.googlecode.svntask.Command;
/**
* From https://github.com/chripo/svntask/
*
* @author christoph polcin (christoph-polcin.com)
*/
public class Cleanup extends Command {
private String path;
private boolean deleteWCProperties;
@Override
public void execute() throws Exception {
this.getTask().log("cleanup");
this.getTask().getSvnClient().getWCClient().doCleanup(new File(this.path).getCanonicalFile(), deleteWCProperties);
}
@Override
protected void validateAttributes() throws Exception {
if(this.path == null)
throw new BuildException("set a starting path");
}
public void setPath(String path) {
this.path = path;
}
/**
* @param deleteWCProperties boolean - if true, removes DAV specific "svn:wc:" properties from the working copy
*/
public void setDeleteWCProperties(boolean deleteWCProperties) {
this.deleteWCProperties = deleteWCProperties;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy