/** ISO8601 (as per log4j) and difference to UTC */\r
private static DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss,SSS Z");\r
\r
- static boolean debug = Boolean.valueOf(System.getProperty(OsgiBoot.PROP_ARGEO_OSGI_BOOT_DEBUG, "false"))\r
- .booleanValue();\r
+ static boolean debug = System.getProperty(OsgiBoot.PROP_ARGEO_OSGI_BOOT_DEBUG) == null ? false\r
+ : !System.getProperty(OsgiBoot.PROP_ARGEO_OSGI_BOOT_DEBUG).trim().equals("false");\r
\r
public static void info(Object obj) {\r
System.out.println("# OSGiBOOT # " + dateFormat.format(new Date()) + " # " + obj);\r
e.printStackTrace();\r
}\r
\r
+ public static boolean isDebug() {\r
+ return debug;\r
+ }\r
+\r
public static String stateAsString(int state) {\r
switch (state) {\r
case Bundle.UNINSTALLED:\r