Author: mbenson
Date: Thu Oct  6 08:48:23 2005
New Revision: 306781

URL: http://svn.apache.org/viewcvs?rev=306781&view=rev
Log:
magic name

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/MagicNames.java
    
ant/core/trunk/src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/MagicNames.java
URL: 
http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/MagicNames.java?rev=306781&r1=306780&r2=306781&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/MagicNames.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/MagicNames.java Thu Oct  6 
08:48:23 2005
@@ -103,6 +103,11 @@
      * Value: [EMAIL PROTECTED]
      */
     public static final String ANT_FILE = "ant.file";
+    /**
+     * property for regular expression implementation.
+     * Value: [EMAIL PROTECTED]
+     */
+    public static final String REGEXP_IMPL = "ant.regexp.regexpimpl";
 
 }
 

Modified: 
ant/core/trunk/src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java
URL: 
http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java?rev=306781&r1=306780&r2=306781&view=diff
==============================================================================
--- 
ant/core/trunk/src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java
 (original)
+++ 
ant/core/trunk/src/main/org/apache/tools/ant/util/regexp/RegexpMatcherFactory.java
 Thu Oct  6 08:48:23 2005
@@ -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
- * <code>ant.regexp.matcherimpl</code> and the classes
+ * <code>ant.regexp.regexpimpl</code> and the classes
  * available.
  *
  * <p>In a more general framework this class would be abstract and
@@ -57,9 +58,9 @@
         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) {



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to