se.fortnox.reactivewizard.util.DebugUtil Maven / Gradle / Ivy
package se.fortnox.reactivewizard.util;
/**
* Utilities for debugging in the development environment.
*/
public class DebugUtil {
public static final boolean IS_DEBUG = isIdePresent(DebugUtil.class.getClassLoader()) || isMavenDebug();
/**
* Checks for the presence of an IDE, currently just IntelliJ.
* @param classLoader to use for the check
*/
static boolean isIdePresent(ClassLoader classLoader) {
return classLoader.getResource("com/intellij") != null;
}
static boolean isMavenDebug() {
return Boolean.getBoolean("maven.surefire.debug");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy