Skip to content
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

Merged
merged 9 commits into from
Jun 13, 2016
Merged

Conversation

uschindler
Copy link
Member

Fix issue #75

@uschindler uschindler changed the title Add new setting to fix issue #75 Add new setting to disable the classloading cache Sep 20, 2015
Conflicts:
	src/main/java/de/thetaphi/forbiddenapis/ant/AntTask.java
Conflicts:
	src/main/java/de/thetaphi/forbiddenapis/maven/AbstractCheckMojo.java
@rjernst
Copy link
Contributor

rjernst commented Jun 7, 2016

I just checked this again with 2.13 and the problem still exists, and this PR does indeed workaround the issue.

@uschindler uschindler self-assigned this Jun 12, 2016
@uschindler uschindler added this to the 2.2 milestone Jun 12, 2016
@@ -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.') ||
Copy link
Contributor

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?

Copy link
Member Author

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.

@rjernst
Copy link
Contributor

rjernst commented Jun 13, 2016

The new changes LGTM, thanks!

@uschindler uschindler merged commit 1ea2132 into master Jun 13, 2016
@uschindler uschindler deleted the issues/75 branch June 13, 2016 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants