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