chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r1554288 - /chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tools/src/main/java/org/apache/chemistry/opencmis/tools/main/ObjGenApp.java
Date Mon, 30 Dec 2013 18:06:12 GMT
Author: jens
Date: Mon Dec 30 18:06:12 2013
New Revision: 1554288

URL: http://svn.apache.org/r1554288
Log:
Tools: Make repository id optional

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tools/src/main/java/org/apache/chemistry/opencmis/tools/main/ObjGenApp.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tools/src/main/java/org/apache/chemistry/opencmis/tools/main/ObjGenApp.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tools/src/main/java/org/apache/chemistry/opencmis/tools/main/ObjGenApp.java?rev=1554288&r1=1554287&r2=1554288&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tools/src/main/java/org/apache/chemistry/opencmis/tools/main/ObjGenApp.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-test/chemistry-opencmis-test-tools/src/main/java/org/apache/chemistry/opencmis/tools/main/ObjGenApp.java
Mon Dec 30 18:06:12 2013
@@ -512,12 +512,8 @@ public class ObjGenApp {
             name = dirName;
         }
 
-        if (null == repoId || repoId.length() == 0) {
-            System.out.println("Error: You have to provide a repository id");
-            return;
-        }
         System.out.println("Copying files to a repository: ");
-        System.out.println("Repository id is: " + repoId);
+        System.out.println("Repository id is: " + (repoId == null ? "not set!" : repoId));
         System.out.println("Folder id used as root: " + options.valueOf(fRootFolder));
 
         Map<String, String> parameters = getConnectionParameters(getBindingProperty(),
repoId);



Mime
View raw message