source: main/trunk/ant-tasks/src/org/greenstone/anttasks/RegexSearchReplaceJob.java@ 22480

Last change on this file since 22480 was 17349, checked in by oranfry, 16 years ago

fixed winpath option to rsr and made the test framwork better, plus merged test.xml and build.xml

File size: 657 bytes
Line 
1package org.greenstone.anttasks;
2public class RegexSearchReplaceJob extends org.apache.tools.ant.types.DataType {
3
4 String pattern = null;
5 String replacement = null;
6 boolean winPath = false;
7
8 public void setPattern(String pattern) {
9 this.pattern = pattern;
10 }
11
12 public void setReplacement(String replacement) {
13 replacement = replacement.replaceAll( "\\\\", "\\\\\\\\" );
14 this.replacement = replacement;
15 }
16
17 public void setWinPath( boolean winPath ) {
18 this.winPath = winPath;
19 }
20
21 public String getPattern() {
22 return pattern;
23 }
24 public String getReplacement() {
25 return replacement;
26 }
27 public boolean getWinPath() {
28 return winPath;
29 }
30
31}
32
Note: See TracBrowser for help on using the repository browser.