URI_OPT,
"the XML:DB URI of the database instance to be shut down.") };
@SuppressWarnings("unchecked")
public static void main(String[] args) {
final CLArgsParser optParser = new CLArgsParser(args, OPTIONS);
if (optParser.getErrorString() != null) {
System.err.println("ERROR: " + optParser.getErrorString());
return;
}
final Properties properties = loadProperties();
String user = "admin";
String passwd = "";
String uri = properties.getProperty("uri", "xmldb:exist://localhost:8080/exist/xmlrpc");
final List<CLOption> opts = optParser.getArguments();
for (final CLOption option : opts) {
switch (option.getId()) {
case HELP_OPT:
System.out.println("Usage: java "
+ ServerShutdown.class.getName() + " [options]");