Hosted by:

wrapper.app.parameter.<n> Property

wrapper.app.parameter.<n> Property

Configuration Property Overview

- Configuration Property Overview
- JVM Configuration Properties
- Property List by Name

wrapper.app.parameter.<n>

Application parameters to pass to your application when it is launched. These are the parameters passed to your application's main method. Each element has a property name which starts with `wrapper.java.parameter.` and ends with an integer number counting up from 1. There can be no missing numbers.

When the value of `wrapper.java.mainclass` is `org.tanukisoftware.wrapper.WrapperSimpleApp`, the first parameter to the application must be the name of the class which contains your main method. All other parameters are then passed to your application's main method in order. See the Integration section for more details.

For each entry, you can also have a corresponding strip quotes flag which will remove unescaped quotes from the element when run on Linux or UNIX machines. This was necessary to allow for file references which contain spaces. For parameters like the one below it would not otherwise be possible to decide when to remove quotes and when to leave them alone. `'\\'` will become `'\'`, `'\"'` will become `'"'` and `'"'` will become `''`. All other characters will remain unchanged.

Example:

    wrapper.java.mainclass=org.tanukisoftware.wrapper.WrapperSimpleApp
    wrapper.app.parameter.1=com.widgetsrus.MyAppMain
    wrapper.app.parameter.2=-d
    wrapper.app.parameter.3=-c"../conf/myapp.conf"
    wrapper.app.parameter.3.stripquotes=TRUE
    wrapper.app.parameter.4=-p4

NOTE MEG

Application parameters are designed to be individual parameters. If you specify a parameter like `'-c conf/myconffile.conf'`, it will work correctly on windows because the `'-c'` and `'conf/myconffile.conf'` parameters will be correctly parsed when Java is launched. But on Unix systems, the parameters will incorrectly be interpreted as a single parameter `'-c conf/myconffile.conf'`.

Incorrect:

    wrapper.app.parameter.1=-c conf/myconffile.conf

Correct:

    wrapper.app.parameter.1=-c
    wrapper.app.parameter.2=conf/myconffile.conf

by Leif Mortenson

Copyright ©1999-2004 by Tanuki Software. All Rights Reserved. | last modified: