You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by bf...@apache.org on 2014/04/19 13:01:35 UTC

svn commit: r1588635 - in /oodt/trunk/pushpull/src/main: java/org/apache/oodt/cas/pushpull/filerestrictions/parsers/GenericEmailParser.java resources/push_pull_framework.properties

Author: bfoster
Date: Sat Apr 19 11:01:34 2014
New Revision: 1588635

URL: http://svn.apache.org/r1588635
Log:
- Added new GenericEmailParser 

Modified:
    oodt/trunk/pushpull/src/main/java/org/apache/oodt/cas/pushpull/filerestrictions/parsers/GenericEmailParser.java
    oodt/trunk/pushpull/src/main/resources/push_pull_framework.properties

Modified: oodt/trunk/pushpull/src/main/java/org/apache/oodt/cas/pushpull/filerestrictions/parsers/GenericEmailParser.java
URL: http://svn.apache.org/viewvc/oodt/trunk/pushpull/src/main/java/org/apache/oodt/cas/pushpull/filerestrictions/parsers/GenericEmailParser.java?rev=1588635&r1=1588634&r2=1588635&view=diff
==============================================================================
--- oodt/trunk/pushpull/src/main/java/org/apache/oodt/cas/pushpull/filerestrictions/parsers/GenericEmailParser.java (original)
+++ oodt/trunk/pushpull/src/main/java/org/apache/oodt/cas/pushpull/filerestrictions/parsers/GenericEmailParser.java Sat Apr 19 11:01:34 2014
@@ -24,6 +24,7 @@ import org.apache.oodt.cas.pushpull.file
 import org.apache.oodt.cas.pushpull.exceptions.ParserException;
 
 
+import com.google.common.base.Strings;
 //Google imports
 import com.google.common.collect.Lists;
 
@@ -126,6 +127,6 @@ public class GenericEmailParser implemen
   }
   
   private String loadPathToRoot() {
-    return System.getProperty(PATH_TO_ROOT_PROPERTY_NAME);
+    return Strings.emptyToNull(System.getProperty(PATH_TO_ROOT_PROPERTY_NAME));
   }
 }

Modified: oodt/trunk/pushpull/src/main/resources/push_pull_framework.properties
URL: http://svn.apache.org/viewvc/oodt/trunk/pushpull/src/main/resources/push_pull_framework.properties?rev=1588635&r1=1588634&r2=1588635&view=diff
==============================================================================
--- oodt/trunk/pushpull/src/main/resources/push_pull_framework.properties (original)
+++ oodt/trunk/pushpull/src/main/resources/push_pull_framework.properties Sat Apr 19 11:01:34 2014
@@ -101,3 +101,4 @@ org.apache.oodt.cas.pushpull.filerestric
 
 org.apache.oodt.cas.pushpull.generic.email.parser.file.pattern=Wav File: ([^\\s]+)
 org.apache.oodt.cas.pushpull.generic.email.parser.check.for.pattern=Pattern to valid email has expected text
+org.apache.oodt.cas.pushpull.generic.email.parser.path.to.root=/some/root/path