Open gitblit opened 9 years ago
Thanks for your answer. AFAICT the best you can do with embedding Winstone is to build a standard WAR file with a fully described web.xml
, manually explode the WAR in your Main-Class
, and call Winstone to load the exploded WAR directory.
I was hoping that Winstone had an API for registering servlets and filters which would avoid polluting the disk with temporary directories but sadly this doesn't seem to be the case.
:+1: Embedding would be a great addition.
Hello, sorry for lag, you can do it with org.intelligents-ia.winstone:winstone artifact. I just see that doc is not up to date.. In order to avoid temporary directory, you have to set a specific one either with command line (--tempDirectory) or property file (Bootstrap.explodeDirectory). I think that I have to update bootstrap version for last option.
Any help is very welcome :+1:
Do you have an example of how to embed Winstone? The docs all seem to suggest WAR or filesystem-based deployments.