diff --git a/src/main/org/apache/tools/ant/MagicNames.java b/src/main/org/apache/tools/ant/MagicNames.java
index d5694c0c3..2858d62e6 100644
--- a/src/main/org/apache/tools/ant/MagicNames.java
+++ b/src/main/org/apache/tools/ant/MagicNames.java
@@ -103,6 +103,11 @@ public final class MagicNames {
* Value: {@value}
*/
public static final String ANT_FILE = "ant.file";
+ /**
+ * property for regular expression implementation.
+ * Value: {@value}
+ */
+ public static final String REGEXP_IMPL = "ant.regexp.regexpimpl";
}
diff --git a/src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java b/src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java
index aa45c0c17..2769fea1f 100644
--- a/src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java
+++ b/src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java
@@ -17,14 +17,15 @@
package org.apache.tools.ant.util.regexp;
-import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
+import org.apache.tools.ant.MagicNames;
+import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.util.ClasspathUtils;
/**
* Simple Factory Class that produces an implementation of
* RegexpMatcher based on the system property
- * ant.regexp.matcherimpl
and the classes
+ * ant.regexp.regexpimpl
and the classes
* available.
*
*
In a more general framework this class would be abstract and @@ -57,9 +58,9 @@ public class RegexpMatcherFactory { throws BuildException { String systemDefault = null; if (p == null) { - systemDefault = System.getProperty("ant.regexp.regexpimpl"); + systemDefault = System.getProperty(MagicNames.REGEXP_IMPL); } else { - systemDefault = p.getProperty("ant.regexp.regexpimpl"); + systemDefault = p.getProperty(MagicNames.REGEXP_IMPL); } if (systemDefault != null) {