All Downloads are FREE. Search and download functionalities are using the official Maven repository.

se.fortnox.reactivewizard.util.DebugUtil Maven / Gradle / Ivy

There is a newer version: 24.6.0
Show newest version
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