1 /** 2 * Custom ant task for replacing semicolons by spaces for Java 3 * Annotation Processing Tool (apt) tool. 4 * @author Evgeny Bessonov 5 */ 6 7 import org.apache.tools.ant.BuildException; 8 import org.apache.tools.ant.Task; 9 10 public class AptSemicolonReplacer extends Task { 11 private String list; 12 private String property = null; 13 public void execute() throws BuildException { 14 getProject().setProperty(property, getList().replaceAll(";", " ")); 15 } 16 public void setList(String list) { 17 this.list = list; 18 } 19 public String getList() { 20 return this.list; 21 } 22 public void setProperty(String property){ 23 this.property = property; 24 } 25 public String getProperty(){ 26 return this.property; 27 } 28 } 29