package org.greenstone.anttasks;
public class RegexSearchReplaceJob extends org.apache.tools.ant.types.DataType {

	String pattern = null;
	String replacement = null;
	boolean winPath = false;

	public void setPattern(String pattern) {
		this.pattern = pattern;
	}

	public void setReplacement(String replacement) {
		replacement = replacement.replaceAll( "\\\\", "\\\\\\\\" );
		this.replacement = replacement;
	}

	public void setWinPath( boolean winPath ) {
		this.winPath = winPath;
	}

	public String getPattern() {
		return pattern;
	}
	public String getReplacement() {
		return replacement;
	}
	public boolean getWinPath() {
		return winPath;
	}

}

