Roberto Sánchez
2014-07-11 261509641ae2f405c50744134d12f261f30e81e3
src/main/java/net/curisit/securis/License.java
....@@ -88,17 +88,12 @@
8888 if (cmd.hasOption('c')) {
8989 String reqFilename = cmd.getOptionValue("rfile");
9090 checkMandatoryParameter(reqFilename, "rfile");
91
- String server = cmd.getOptionValue("server");
92
- checkMandatoryParameter(server, "server");
9391
9492 log.warn("This command is not yet implemented");
9593 System.exit(0);
9694 }
9795
9896 if (cmd.hasOption('t')) {
99
- String server = cmd.getOptionValue("server");
100
- checkMandatoryParameter(server, "server");
101
-
10297 log.warn("This command is not yet implemented");
10398 System.exit(0);
10499 }
....@@ -106,9 +101,6 @@
106101 if (cmd.hasOption('r')) {
107102 String licFilename = cmd.getOptionValue("renew");
108103 checkMandatoryParameter(licFilename, "renew");
109
- String server = cmd.getOptionValue("server");
110
- checkMandatoryParameter(server, "server");
111
-
112104 log.warn("This command is not yet implemented");
113105 System.exit(0);
114106 }
....@@ -173,13 +165,13 @@
173165
174166 options.addOption("h", "help", false, "Show help.");
175167 options.addOption(OptionBuilder.withArgName("req_file").withLongOpt("rfile").withDescription("Set request file for its generation or for license requesting.").hasArg(true).create('r'));
176
- options.addOption(OptionBuilder.withArgName("url_license_server").withLongOpt("server").withDescription("License server url.").hasArg(true).create('s'));
168
+ // options.addOption(OptionBuilder.withArgName("url_license_server").withLongOpt("server").withDescription("License server url.").hasArg(true).create('s'));
177169 options.addOption(OptionBuilder.withArgName("lic_file").withLongOpt("validate").withDescription("Validate lic file.").hasArg(true).create('l'));
178170
179171 options.addOption("g", "gen_request", false, "Generate request file. If --rfile parameter is missing then It is generated in current directory.");
180
- options.addOption(OptionBuilder.withArgName("lic_file").withLongOpt("create").withDescription("Request a license file from server. --server parameters is mandatory.").hasArg(true).create('c'));
172
+ options.addOption(OptionBuilder.withArgName("lic_file").withLongOpt("create").withDescription("Request a license file from server.").hasArg(true).create('c'));
181173 options.addOption("t", "test_lc", false, "Test if License Server (LC) is available. --server parameter is mandatory.");
182
- options.addOption(OptionBuilder.withArgName("lic_file").withLongOpt("renew").withDescription("Synchronize/renew the current license file. --server parameter is mandatory.").hasArg(true).create('r'));
174
+ options.addOption(OptionBuilder.withArgName("lic_file").withLongOpt("renew").withDescription("Synchronize/renew the current license file.").hasArg(true).create('r'));
183175
184176 return options;
185177 }