Repository: sqoop
Updated Branches:
  refs/heads/trunk e2544a9a9 -> b1cc81779


SQOOP-1330: Ignore blank newlines in managers.d property files

(Chiwan Park via Jarek Jarcec Cecho)


Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/b1cc8177
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/b1cc8177
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/b1cc8177

Branch: refs/heads/trunk
Commit: b1cc817792c1f17745dd8f46e7c1b6e636a141c9
Parents: e2544a9
Author: Jarek Jarcec Cecho <[email protected]>
Authored: Mon Aug 25 07:57:47 2014 +0200
Committer: Jarek Jarcec Cecho <[email protected]>
Committed: Mon Aug 25 07:57:47 2014 +0200

----------------------------------------------------------------------
 src/java/org/apache/sqoop/ConnFactory.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/b1cc8177/src/java/org/apache/sqoop/ConnFactory.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/sqoop/ConnFactory.java 
b/src/java/org/apache/sqoop/ConnFactory.java
index 2276525..e9c45bc 100644
--- a/src/java/org/apache/sqoop/ConnFactory.java
+++ b/src/java/org/apache/sqoop/ConnFactory.java
@@ -220,6 +220,9 @@ public class ConnFactory {
       Properties props = new Properties();
       String line;
       while ((line = r.readLine()) != null) {
+        if ("".equals(line.trim())) {
+          continue;
+        }
         int separator = line.indexOf('=');
         if (separator == -1) {
           throw new IOException("the content of connector file must be "

Reply via email to