usr/src/cmd/jruby/AptSemicolonReplacer.java
author Jon Tibble <meths@btinternet.com>
Fri, 10 Feb 2012 16:19:42 +0000
branchoi_151a
changeset 114 b6d40d0a7b17
parent 0 b34509ac961f
permissions -rw-r--r--
Added tag oi_151a_prestable1 for changeset b1282e88c680

/**
 * 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;
	}
}