This patch adds two new parameters to winstone:
This provides a means of specifying extra paths that should be added to the classpath for a webapp. This is very useful when, for instance, you want to invoke winstone on an application that has not yet been fully packaged into a webroot. I use this parameter to invoke winstone on my project in Eclipse, where there are multiple paths to classes and resources needed to actually execute the webapp, since no ant script has yet be run to build it into a webroot.
This parameter adds an additional init parameter to the servlet context for this webapp. If the this init-param is already set in the web application descriptor, the value given through the parameter will override that in the web application descriptor. This is useful to set particular per-app settings without modifying the deployment descriptor, such as in customing the application parameters for debug, setting database names or passwords per-deployment, etc.
Example: "--initParam-password=secret" will set the init-param named password to the value secret.
The parameters described above operate globally for all webapps. To support multiple webapps, each of these settings is also available in a per-webapp version.
Example: "--cart-initParam-password=secret" will set the init-param named password to the value secret, but only for the webapp with prefix "/cart".
Log in to post a comment.