Author: ate
Date: Thu Apr 17 07:32:22 2008
New Revision: 649128

URL: http://svn.apache.org/viewvc?rev=649128&view=rev
Log:
improving and fixing usage and feedback messages

Modified:
    
portals/jetspeed-2/portal/trunk/components/jetspeed-db-tools/src/main/java/org/apache/jetspeed/tools/db/serializer/JetspeedSerializerApplicationImpl.java

Modified: 
portals/jetspeed-2/portal/trunk/components/jetspeed-db-tools/src/main/java/org/apache/jetspeed/tools/db/serializer/JetspeedSerializerApplicationImpl.java
URL: 
http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/components/jetspeed-db-tools/src/main/java/org/apache/jetspeed/tools/db/serializer/JetspeedSerializerApplicationImpl.java?rev=649128&r1=649127&r2=649128&view=diff
==============================================================================
--- 
portals/jetspeed-2/portal/trunk/components/jetspeed-db-tools/src/main/java/org/apache/jetspeed/tools/db/serializer/JetspeedSerializerApplicationImpl.java
 (original)
+++ 
portals/jetspeed-2/portal/trunk/components/jetspeed-db-tools/src/main/java/org/apache/jetspeed/tools/db/serializer/JetspeedSerializerApplicationImpl.java
 Thu Apr 17 07:32:22 2008
@@ -59,7 +59,8 @@
         
         if (args == null)
         {
-            throw new IllegalArgumentException("Either import or export have 
to be defined (-I or -E follwoed by the filename");
+            System.out.println("Usage for import: -I importFiles (, delimited 
if multiple) -a applicationRootFolder -c <categories | categories filter key 
(requires -n)> [-n <categories properties file>]");
+            System.out.println("Usage for export: -E exportFile  -a 
applicationRootFolder -c <categories | categories filter key (requires -n)> [-n 
<categories properties file>] [-N <exportName>");
         }
 
         // Parse all the command-line arguments
@@ -92,7 +93,7 @@
         
             if ((!doImport) && (!doExport))
             {
-              throw new IllegalArgumentException("Either import or export have 
to be defined (-I or -E follwoed by the filename");
+              throw new IllegalArgumentException("Either import or export have 
to be defined (-I or -E followed by the filename");
             }
 
             if ((doImport) && (doExport))
@@ -190,11 +191,11 @@
         }
         catch (Exception e)
         {
+            logger.error(e);
             if (e instanceof SerializerException)
             {
                 throw (SerializerException)e;
             }
-            logger.error(e);
             throw new 
SerializerException(SerializerException.IMPORT_ERROR.create(e.getMessage()));
         }
         finally



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to