make/tools/classanalyzer/src/com/sun/classanalyzer/Trace.java
Print this page
@@ -26,11 +26,15 @@
/**
*
* @author Mandy Chung
*/
public class Trace {
- public static boolean traceOn = System.getProperty("classanalyzer.debug") != null;
+ // Turn on tracing by setting a system property "classanalyzer.debug"
+ // or an environment variable "CLASS_ANALYZER_DEBUG"
+ public static boolean traceOn =
+ System.getProperty("classanalyzer.debug") != null ||
+ System.getenv("CLASS_ANALYZER_DEBUG") != null;
public static void trace(String format, Object... params) {
if (traceOn) {
System.err.format(format, params);
}