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

Load scriptFile from filesystem first #13

Merged
merged 2 commits into from Apr 20, 2015
Merged

Load scriptFile from filesystem first #13

merged 2 commits into from Apr 20, 2015

Conversation

brianm
Copy link
Owner

@brianm brianm commented Apr 19, 2015

If scriptFile is available on the filesystem load from there. If not, fall back to loading from the jar. This restores the original, and intended behavior of the plugin. Fixes #12

If scriptFile is available on the filesystem
load from there. If not, fall back to loading
from the jar. This restores the original, and
intended behavior of the plugin.
@@ -163,7 +163,15 @@ private void makeExecutable(File file)

if (scriptFile == null) {
out.write(("#!/bin/sh\n\nexec java " + flags + " -jar \"$0\" \"$@\"\n\n").getBytes("ASCII"));
} else {
}
else if (Files.exists(Paths.get((scriptFile)))) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have an extra pair of () here.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, just pushed the removal of said parens!

brianm added a commit that referenced this pull request Apr 20, 2015
Load scriptFile from filesystem first
@brianm brianm merged commit eed77dd into master Apr 20, 2015
@brianm
Copy link
Owner Author

brianm commented Apr 20, 2015

Merged, releasing.

@brianm
Copy link
Owner Author

brianm commented Apr 20, 2015

Released 1.4.1 to oss.s.o

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.

scriptFile needs to be in the shaded jar but README suggests otherwise
2 participants