comparison artifact-database/src/main/java/de/intevation/artifactdatabase/App.java @ 87:0f48188a6e02

Added some javadoc to the artifactdatabase module. Not done yet. artifacts/trunk@839 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 26 Mar 2010 11:40:28 +0000
parents 8c4638abd518
children e27cf9c84eb8
comparison
equal deleted inserted replaced
86:b2e0cb83631c 87:0f48188a6e02
16 * 16 *
17 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a> 17 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a>
18 */ 18 */
19 public class App 19 public class App
20 { 20 {
21 /**
22 * The logging is done via Log4j. To configure the logging
23 * a file 'log4j.properties' is search in the configuration directory.
24 */
21 public static final String LOG4J_PROPERTIES = 25 public static final String LOG4J_PROPERTIES =
22 "log4j.properties"; 26 "log4j.properties";
23 27
28 /**
29 * Trys to load the Log4j configuration from ${config.dir}/log4j.properties.
30 */
24 public static final void configureLogging() { 31 public static final void configureLogging() {
25 File configDir = Config.getConfigDirectory(); 32 File configDir = Config.getConfigDirectory();
26 File propFile = new File(configDir, LOG4J_PROPERTIES); 33 File propFile = new File(configDir, LOG4J_PROPERTIES);
27 34
28 if (propFile.isFile() && propFile.canRead()) { 35 if (propFile.isFile() && propFile.canRead()) {
34 mue.printStackTrace(System.err); 41 mue.printStackTrace(System.err);
35 } 42 }
36 } 43 }
37 } 44 }
38 45
46 /**
47 * Starts the artifact database.
48 * @param args The commandline arguments. Unused.
49 */
39 public static void main(String[] args) { 50 public static void main(String[] args) {
40 51
41 configureLogging(); 52 configureLogging();
42 53
43 FactoryBootstrap bootstrap = new FactoryBootstrap(); 54 FactoryBootstrap bootstrap = new FactoryBootstrap();

http://dive4elements.wald.intevation.org