You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by so...@apache.org on 2012/04/17 08:40:04 UTC

svn commit: r1326947 - /incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/cli/Admin.java

Author: solomax
Date: Tue Apr 17 06:40:03 2012
New Revision: 1326947

URL: http://svn.apache.org/viewvc?rev=1326947&view=rev
Log:
OPENMEETINGS-174 file was taken from wrong option

Modified:
    incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/cli/Admin.java

Modified: incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/cli/Admin.java
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/cli/Admin.java?rev=1326947&r1=1326946&r2=1326947&view=diff
==============================================================================
--- incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/cli/Admin.java (original)
+++ incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/cli/Admin.java Tue Apr 17 06:40:03 2012
@@ -253,7 +253,7 @@ public class Admin {
 			cmd = Command.files;
 		}
 
-		String file = cmdl.getOptionValue('f', "");
+		String file = cmdl.getOptionValue("file", "");
 		switch(cmd) {
 			case install:
 				try {
@@ -320,7 +320,7 @@ public class Admin {
 				break;
 			case backup:
 				try {
-					if (!cmdl.hasOption('f')) {
+					if (!cmdl.hasOption("file")) {
 						file = "backup_" + CalendarPatterns.getTimeForStreamId(new Date()) + ".zip";
 						System.out.println("File name was not specified, '" + file + "' will be used");
 					}
@@ -339,7 +339,7 @@ public class Admin {
 			case restore:
 				try {
 					File backup = new File(file);
-					if (!cmdl.hasOption('f') || !backup.exists() || !backup.isFile()) {
+					if (!cmdl.hasOption("file") || !backup.exists() || !backup.isFile()) {
 						System.out.println("File should be specified, and point the the existent zip file");
 						usage();
 						System.exit(1);