-
Notifications
You must be signed in to change notification settings - Fork 2
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
Overlays for repository based web apps in a farm #4
Comments
Hey From fast lookup in gretty source I found out that overlays cannot be used But it can be supported with some coding so I'll try to do my best and 2016-03-31 14:24 GMT+03:00 Joan Karadimov [email protected]:
|
If you have the time to give me some guidelines, I could try to implement that. |
I think the easiest way to achieve that is to write a task which explodes war dependency to some temp folder, apply overlays over it and then repackage war archive to some destination. I would recommend you to create additional property in GrettyExtension named like overlayWars so you can configure it like gretty { Then in org.akhikhl.gretty.GrettyPlugin#addTasks you should check for it and add a task for each detected war. This task should:
Then in org.akhikhl.gretty.GrettyPlugin#addTaskDependencies you should check if webApp in your farm is overlayed. If so you should add task dependency for farmStartTask to task you create. You can use 'explodeWebApps' and 'overlayArchive' as a base line (note that they process war created by war task). |
Hey, I'm experiencing some difficulties with this. Should I leave it to you or are you too busy for it? |
I'm thinking about a right way to implement this properly so you can leave 2016-04-12 16:37 GMT+03:00 Joan Karadimov [email protected]:
|
Ok, thanks! |
Hello, is there any progress on this? |
I've implemented this feature in 1.2.6-SNAPSHOT. Can you please test it in ur use cases? |
Thanks! Sorry, about the delay. Some other higher priority stuff came out. I'll test it in the next day or two and write about this. |
Hello,
Thanks for the effort of supporting this.
I'm having a problem. I want to have an overlay for a webapp in a farm. But the webapp does not come from a subproject. It is a maven artifact. I initially tried something like:
According to the documentation (here) you can pass web-app-specific properties as named arguments (like this). The list of properties (here) lists
overlays
as a property. However, this is a method and can not be used in the context of the code snippet above.I am continuing to read the code of gretty and trying to find a work-around. But it would be great if you have some input on this.
The text was updated successfully, but these errors were encountered: