usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g...@apache.org
Subject incubator-usergrid git commit: Added comments on how to run these files.
Date Tue, 14 Apr 2015 21:54:12 GMT
Repository: incubator-usergrid
Updated Branches:
  refs/heads/exportImportTool 5d3866904 -> 6d962b7fe


Added comments on how to run these files.


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/6d962b7f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/6d962b7f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/6d962b7f

Branch: refs/heads/exportImportTool
Commit: 6d962b7fe1cd5b47896ca16c0d0b9a297df45a54
Parents: 5d38669
Author: GERey <greyes@apigee.com>
Authored: Tue Apr 14 14:54:10 2015 -0700
Committer: GERey <greyes@apigee.com>
Committed: Tue Apr 14 14:54:10 2015 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/usergrid/tools/ExportAdmins.java  | 3 +++
 .../src/main/java/org/apache/usergrid/tools/ImportAdmins.java  | 6 ++++--
 2 files changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/6d962b7f/stack/tools/src/main/java/org/apache/usergrid/tools/ExportAdmins.java
----------------------------------------------------------------------
diff --git a/stack/tools/src/main/java/org/apache/usergrid/tools/ExportAdmins.java b/stack/tools/src/main/java/org/apache/usergrid/tools/ExportAdmins.java
index 490df4a..fe2752f 100644
--- a/stack/tools/src/main/java/org/apache/usergrid/tools/ExportAdmins.java
+++ b/stack/tools/src/main/java/org/apache/usergrid/tools/ExportAdmins.java
@@ -42,6 +42,9 @@ import org.apache.usergrid.persistence.cassandra.CassandraService;
 import org.apache.usergrid.utils.JsonUtils;
 
 
+/**
+ * java -jar usergrid-tools.jar ExportAdmins
+ */
 public class ExportAdmins extends ExportingToolBase {
 
     static final Logger logger = LoggerFactory.getLogger( Export.class );

http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/6d962b7f/stack/tools/src/main/java/org/apache/usergrid/tools/ImportAdmins.java
----------------------------------------------------------------------
diff --git a/stack/tools/src/main/java/org/apache/usergrid/tools/ImportAdmins.java b/stack/tools/src/main/java/org/apache/usergrid/tools/ImportAdmins.java
index 71dc8cb..76b2343 100644
--- a/stack/tools/src/main/java/org/apache/usergrid/tools/ImportAdmins.java
+++ b/stack/tools/src/main/java/org/apache/usergrid/tools/ImportAdmins.java
@@ -52,6 +52,8 @@ import static org.apache.usergrid.persistence.cassandra.CassandraService.MANAGEM
 
 /**
  * TODO: REFACTOR EVERYTHING TO USE JSON NODES
+ * Example on how to run:
+ * java -jar usergrid-tools.jar ImportAdmins -host cassandraHost -v -inputDir exportFilesDirectory
  */
 public class ImportAdmins extends ToolBase {
 
@@ -443,7 +445,7 @@ public class ImportAdmins extends ToolBase {
             importDir = new File( DEFAULT_INPUT_DIR );
         }
 
-        System.out.println( "Importing from:" + importDir.getAbsolutePath() );
-        System.out.println( "Status. Exists: " + importDir.exists() + " - Readable: " + importDir.canRead()
);
+        logger.info( "Importing from:" + importDir.getAbsolutePath() );
+        logger.info( "Status. Exists: " + importDir.exists() + " - Readable: " + importDir.canRead()
);
     }
 }


Mime
View raw message