#3 PATCH: Add --extraClassPath and --initParam

open
nobody
None
5
2007-12-03
2007-12-03
James Berry
No

This patch adds two new parameters to winstone:

--extraClassPath=path1:path2:path3

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.

--initParam-<foo>=paramvalue

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.

--<prefix>-extraClassPath=path1:path2:path3
--<prefix>-initParam-password=secret

Example: "--cart-initParam-password=secret" will set the init-param named password to the value secret, but only for the webapp with prefix "/cart".

Discussion

  • James Berry

    James Berry - 2007-12-03

    Logged In: YES
    user_id=1231469
    Originator: YES

    Add diff from WebAppConfiguration.java
    File Added: patch-WebAppConfiguration.java

     
  • James Berry

    James Berry - 2007-12-03

    Entire modified WebAppConfiguration.java

     
  • James Berry

    James Berry - 2007-12-03

    Logged In: YES
    user_id=1231469
    Originator: YES

    Add entire modified WebAppConfiguration.java.
    File Added: WebAppConfiguration.java

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks