/**
* Custom ant task for replacing semicolons by spaces for Java
* Annotation Processing Tool (apt) tool.
* @author Evgeny Bessonov
*/
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Task;
public class AptSemicolonReplacer extends Task {
private String list;
private String property = null;
public void execute() throws BuildException {
getProject().setProperty(property, getList().replaceAll(";", " "));
}
public void setList(String list) {
this.list = list;
}
public String getList() {
return this.list;
}
public void setProperty(String property){
this.property = property;
}
public String getProperty(){
return this.property;
}
}