Open ThomasDaheim opened 6 years ago
The application plugin does it by creating a startScripts task which can be completely customized. Its API doc has an example on how to create such a task (completely customizable). Then you can just depend on it and configure your distribution to put those script files into the archives.
Thanks, will have to play around with this a bit.
Since I now have a working version of run and debug tasks thanksto https://github.com/kelemen/netbeans-gradle-project/issues/403 I would now need to extend the assembleDist task as well. In ordr to run my project under windows I need something like
So I need to change two things in the .bat file:
set CLASSPATH=%APP_HOME%"\lib\*"
- otherwise the line gets to long for cmd processing--module-path
,--add-modules
,--add-exports
that I have added to the run and debug tasks here as wellHow would I go ahead and do that in build.gradle?