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

Do not let the usage statistics prevent bare .class plugins from running #77

Merged
merged 1 commit into from
Aug 11, 2014

Conversation

dscho
Copy link
Contributor

@dscho dscho commented Aug 11, 2014

There is a "cute" logic in ImageJ 1.x allowing to run bare .class plugins
even if they are in subdirectories of the plugins/ directory. This
requires some hackery to work, thanks to the ImageJ 1.x patcher. But as
long as that hackery has not been run, the class cannot be run properly.

For the moment, simply ignore such plugin classes when gathering usage
statistics.

This should fix http://fiji.sc/bugzilla/show_bug.cgi?id=891 reported by
Aryeh Weiss.

Signed-off-by: Johannes Schindelin johannes.schindelin@gmx.de

@dscho
Copy link
Contributor Author

dscho commented Aug 11, 2014

@ctrueden could you have a look at this? Hopefully this will fix Aryeh's problem...

There is a "cute" logic in ImageJ 1.x allowing to run bare .class plugins
even if they are in subdirectories of the plugins/ directory. This
requires some hackery to work, thanks to the ImageJ 1.x patcher. But as
long as that hackery has not been run, the class cannot be run properly.

For the moment, simply ignore such plugin classes when gathering usage
statistics.

This should fix http://fiji.sc/bugzilla/show_bug.cgi?id=891 reported by
Aryeh Weiss.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ctrueden added a commit that referenced this pull request Aug 11, 2014
Do not let the usage statistics prevent bare .class plugins from running
@ctrueden ctrueden merged commit 2e71db7 into master Aug 11, 2014
@ctrueden
Copy link
Member

Thanks @dscho, I expanded the comment in the catch block to be more explanatory, like your commit message. But I think we do want to ignore plugins in bare class files, anyway. If someone cares that their plugin have usage statistics online, they can care enough to package it in a .jar file!

@ctrueden ctrueden deleted the usage-of-bare-classes branch August 11, 2014 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants