-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new setting to disable the classloading cache #76
Conversation
Conflicts: src/main/java/de/thetaphi/forbiddenapis/ant/AntTask.java
Conflicts: src/main/java/de/thetaphi/forbiddenapis/maven/AbstractCheckMojo.java
I just checked this again with 2.13 and the problem still exists, and this PR does indeed workaround the issue. |
@@ -23,10 +23,19 @@ if (project.plugins.withType(JavaBasePlugin.class).isEmpty()) { | |||
throw new PluginInstantiationException('Forbidden-apis only works in projects using the java plugin.'); | |||
} | |||
|
|||
// chck if running in Gradle Daemon? | |||
// see: http://stackoverflow.com/questions/23265217/how-to-know-whether-you-are-running-inside-a-gradle-daemon | |||
boolean isGradleDaemon = System.getProperty('sun.java.command', '').startsWith('org.gradle.launcher.daemon.') || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have you checked this in any other JVMs like openjdk or ibm?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The second part with stack trace should hit on any JVM. The first check is just a shortcut.
The new changes LGTM, thanks! |
Fix issue #75