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

Rewrite 'installDist' support to use custom templates instead of changing generated files #28

Open
zyxist opened this issue Mar 22, 2018 · 0 comments

Comments

@zyxist
Copy link
Owner

zyxist commented Mar 22, 2018

The Gradle API for installDist task supports providing custom templates for Unix and Windows scripts. It is a much easier way for providing Jigsaw support in the start scripts, than updating already generated files.

  1. Take the original Gradle templates
  2. Update them for Jigsaw, and configure installDist task to use them,
  3. Pass Jigsaw flags to the templates.

This would allow solving issues #13, #16 and #20 in (almost) one shot.

API reference:

https://docs.gradle.org/current/dsl/org.gradle.jvm.application.tasks.CreateStartScripts.html#org.gradle.jvm.application.tasks.CreateStartScripts:windowsStartScriptGenerator

@zyxist zyxist added this to the chainsaw-0.3.2 milestone Mar 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant