incubator-oodt-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattm...@apache.org
Subject svn commit: r981116 - in /incubator/oodt/trunk: CHANGES.txt metadata/src/main/java/org/apache/oodt/cas/metadata/extractors/ExternConfigReader.java
Date Sun, 01 Aug 2010 02:03:38 GMT
Author: mattmann
Date: Sun Aug  1 02:03:38 2010
New Revision: 981116

URL: http://svn.apache.org/viewvc?rev=981116&view=rev
Log:
- fix for OODT-7 Curator adds escaped sequenced spaces when reading extractorBinPath tag from
extractor config file

Modified:
    incubator/oodt/trunk/CHANGES.txt
    incubator/oodt/trunk/metadata/src/main/java/org/apache/oodt/cas/metadata/extractors/ExternConfigReader.java

Modified: incubator/oodt/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/CHANGES.txt?rev=981116&r1=981115&r2=981116&view=diff
==============================================================================
--- incubator/oodt/trunk/CHANGES.txt (original)
+++ incubator/oodt/trunk/CHANGES.txt Sun Aug  1 02:03:38 2010
@@ -5,6 +5,9 @@ Apache OODT Change Log
 Release 0.1-incubating - Current Development
 --------------------------------------------
 
+* OODT-7 Curator adds escaped sequenced spaces when reading extractorBinPath 
+  tag from extractor config files (joshuaga via mattmann)
+
 * OODT-21 Remove jersey dependency from curator and replace with Apache CXF (mattmann)
 
 * OODT-18 Convert curator to use Apache commons rather than jTidy (mattmann)

Modified: incubator/oodt/trunk/metadata/src/main/java/org/apache/oodt/cas/metadata/extractors/ExternConfigReader.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/metadata/src/main/java/org/apache/oodt/cas/metadata/extractors/ExternConfigReader.java?rev=981116&r1=981115&r2=981116&view=diff
==============================================================================
--- incubator/oodt/trunk/metadata/src/main/java/org/apache/oodt/cas/metadata/extractors/ExternConfigReader.java
(original)
+++ incubator/oodt/trunk/metadata/src/main/java/org/apache/oodt/cas/metadata/extractors/ExternConfigReader.java
Sun Aug  1 02:03:38 2010
@@ -76,7 +76,7 @@ public final class ExternConfigReader im
             // going
             // to be
             // a path
-            binPath = binPath.replaceAll("\\s", "\\\\ ");
+            binPath = binPath.replaceAll("^\\s+", "").replaceAll("\\s+$", "").replaceAll("\\s",
"\\\\ ");
 
             config.setExtractorBinPath(binPath);
 



Mime
View raw message