Changeset 1901
- Timestamp:
- 2011-04-22 07:22:04 (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/kauri-runtime-cli/src/main/java/org/kauriproject/runtime/cli/KauriRuntimeCli.java
r1878 r1901 51 51 import org.kauriproject.util.xml.SimpleNamespaceContext; 52 52 import org.kauriproject.util.io.IOUtils; 53 import org.restlet.engine.Engine; 53 54 import org.slf4j.bridge.SLF4JBridgeHandler; 54 55 import org.w3c.dom.Document; … … 68 69 69 70 private void run(String[] args) throws Exception { 71 // Let Restlet configure its log now, since next we are going to redirect the JDK logging, and otherwise 72 // when the Restlet Engine is initialized it will undo that. 73 Engine.configureLog(); 74 70 75 // Forward JDK logging to SLF4J 71 76 LogManager.getLogManager().reset(); … … 78 83 .withArgName("confdir") 79 84 .hasArg() 80 .withDescription("The Kauri runtime configuration directory. Can be multiple paths separated by " + File.pathSeparator) 85 .withDescription("The Kauri runtime configuration directory. Can be multiple paths separated by " + 86 File.pathSeparator) 81 87 .withLongOpt("confdir") 82 88 .create('c'); … … 86 92 .withArgName("maven-repo-path") 87 93 .hasArg() 88 .withDescription("Location of the (Maven-style) artifact repository. Use comma-separated entries to specify multiple locations which will be searched in the order as specified.") 94 .withDescription("Location of the (Maven-style) artifact repository. Use comma-separated entries to " + 95 "specify multiple locations which will be searched in the order as specified.") 89 96 .withLongOpt("repository") 90 97 .create('r'); … … 108 115 .withArgName("loglevel") 109 116 .hasArg() 110 .withDescription("Enable logging to console for the root log category with specified loglevel (debug, info, warn, error)") 117 .withDescription("Enable logging to console for the root log category with specified loglevel " + 118 "(debug, info, warn, error)") 111 119 .withLongOpt("console-logging") 112 120 .create('l'); … … 203 211 File confDir = new File(DEFAULT_CONF_DIR).getAbsoluteFile(); 204 212 if (!confDir.exists()) { 205 System.out.println("Default configuration directory " + DEFAULT_CONF_DIR + " not found in current directory: " + confDir.getAbsolutePath()); 213 System.out.println("Default configuration directory " + DEFAULT_CONF_DIR + 214 " not found in current directory: " + confDir.getAbsolutePath()); 206 215 System.out.println("To specify another location, use the -" + confDirsOption.getOpt() + " argument"); 207 216 System.exit(1);
Note: See TracChangeset
for help on using the changeset viewer.