-
Notifications
You must be signed in to change notification settings - Fork 446
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
Wip/windows service #329
Wip/windows service #329
Conversation
Hi @laguiz, Thank you for your contribution! We really value the time you've taken to put this together. Before we proceed with reviewing this pull request, please sign the Typesafe Contributors License Agreement: |
It's far from being ready for a pull request I have some questions that you may discover in the code itself
a60a0ff
to
408cbb2
Compare
It's far from being ready for a pull request I have some questions that you may discover in the code itself
Fyi I signed the Typesafe Contributors License Agreement. |
Quick info : I will try to push my current new version to this branch before october 12. |
Awesome, looking forward to it. If you need help on rebasing this one, feel free to ask :) |
Well it's 12 october but unfortunately I did not get the time to finish. I pulled the branch and reintegrate my changes and it compile but I did not tested. Next date 19 october. I keep you informed. Sorry for the delay :) |
Hi :) Thanks keeping us up-to-date. No pressure, we are currently working very hard on the autoplugins refactoring. I'm branching off a |
…not manage Wix + Winsw but only add Winsw files into ZIP file in `target/windows` folder if user call `windows:packageZip` or if user change the default strategy. Winws XML file looks OK but I did not test properly yet. Know issue : Users HAVE to create Windows environment variable named `MY_PROJECT_OPTS` even if this variable is empty otherwise Winsw won't work because `%MY_PROJECT_OPTS%` will be used as is if no env variable is found (see Winsw doc).
Current version : laguiz@7bb1909 |
This start to become old :) However I want to share experience we had with colleagues. Since we are using Java 7, we can use "wildcard" classpath (in fact since Java 6 we can do this!). See http://stackoverflow.com/questions/219585/setting-multiple-jars-in-java-classpath for more details. This mean for us that the final Winsw XML become pretty simple. In fact the configuration does not depends on listing each libraries one by one. This mean if we ship a new version of the application that include for example a new library then Winsw XML file does not change. Here is an example of an Winsw XML file using wildcard for the classpath:
Important part here is In the scenario where we ship a new version of the application, this XML file will still works. Administrator just have to rename folders and stop/start the windows service without changing Winsw XML file. So my conclusion on this PR would be do not pull it :) but simply add a tutorial on sbt-native-packager website that would describe this simple scenario. Let me know what you think. |
@laguiz I think it's awesome you put this much effort into this :)
Yeah, that will work. However this is not a good idea, because of two main points
And I'm not sure about the |
Hi, Regarding my effort, I said I will follow up so I do :) Regarding your points :
From Javadoc I can read this
I'm not trolling here ;) Are you aware of any classpath ordering issue in Scala/Play/Akka ... ? Would be interesting to know. If I print the classpath it looks like there is a sorting logic in If one of the point 1 or 2 is not negotiable then we continue on this PR. Regarding Let me know what you think. |
Just saw this comment : It looks like wildcard approach is possible but should not be the default or at least should not be the only option. |
I like that one
This should really be the case in a well constructed application. However I think this is not interesting for this conversation as your pull request already solves this issue perfectly :)
This is the main point and the reason why I want to continue this pull request. It should be as easy as possible to install a windows server and I think the way we are going is an awesome first start.
If you need help on merge from master, ping me :) |
@laguiz , I rebased your changes and fixed some compilation errors. Feel free to
fork from this branch (I'll close this PR if you can continue your work).