Please or
Try NowBuy Now

Locations of visitors to this page

SourceForge.net

SourceForge.JP

wrapper.app.parameter.<n> Property
wrapper.app.parameter.<n> Property

Configuration Property Overview

wrapper.app.parameter.<n>

Compatibility : 1.0.0
Editions :Professional EditionStandard EditionCommunity Edition
Platforms :WindowsMac OSXLinuxIBM AIXFreeBSDHP-UXSolarisIBM z/OSIBM z/Linux

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.app.parameter. and the "<n>" component of the property name is an integer number counting up from "1". By default, there can be no missing numbers. The wrapper.ignore_sequence_gaps property can optionally be set to allow gaps in the sequence.

When the value of wrapper.java.mainclass property 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 (stripquotes property = TRUE) which will remove unescaped quotes from the element when run on Linux/Unix machines. This is 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. All other characters except for the followings will remain unchanged.

  • '\\' will become '\',
  • '\"' will become '"'
  • '"' will become ''

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

Individual parameter entry:

Application parameters are designed to be individual parameter entry. 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

Reference: Parameter





User Comments

If you notice something that is incorrect, missing, or simply feel that some part of this page could be explained better, feel free to log in and add a comment. You will need to register before you can log on.

Email:
Password:
Java Service Wrapper Version: 3.5.4