-
Notifications
You must be signed in to change notification settings - Fork 51
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
Liberty server tasks blow away jvm.options #786
Comments
@five-iron If you mean the |
Yeah I think you've captured what I'm saying. My setup right now doesn't use a How hard would it be to prevent gradle from touching this file altogether (or at least when those jvmOption-related configs are not set, so as to not blow away the deployed file)? |
@five-iron I see. So I can understand why you wouldn't want it deleted from a pre-installed Liberty, but we have nothing built into the code to prevent that from getting deleted. The problem is our plugin will not know if that file was pre-existing or came from our plugin configuration on a previous run. Perhaps we can have some special logic if the user is pointing to a pre-installed Liberty, then leave the files as is unless plugin configuration is specified currently. I will discuss with my team. |
@cherylking Do you know when this could get released / when the next regular deployment cycle might be? |
@five-iron We typically wait for more fixes to go in, but it is not a problem for me to do a minor fix release if this is important for your forward development/work. Let me see if I can fit this in my schedule tomorrow or early next week. |
Don't sweat it if you can't fit in, it's not a blocker for us just a minor annoyance. |
Ok, thanks. I went ahead and create a snapshot if you want to give it a try. Are you familiar with how to pull in snapshots from Sonatype? |
Hm no I am not familiar with that. I tried searching maven.org but can't find snapshots anywhere for liberty-gradle-plugin. |
@five-iron The [readme](Liberty Tools helps you quickly a) has a small bit on using snapshots. The version would be |
Thanks I was able to download the snapshot and verify that it works as intended. |
@five-iron Published release |
#513 causes a delete of jvm.options and other configs during liberty tasks. What I guess we're supposed to do is to set up jvmOptions or jvmOptionsFile in the liberty.server block in build.gradle, or create a jvm.options in the config folder. This a problem for me because if you don't have these options set, then your server's jvm.options just gets deleted when running any liberty server gradle tasks. I'd rather just have the server's jvm.options persist instead.
Is this intended? If so, can we add an option to not delete the deployed jvm.options?
The text was updated successfully, but these errors were encountered: