You can create a new launch configuration by "pushing" a new configuration to the ConfigAdmin service. If you use something like Felix FileInstall, you can do this by creating a new properties file with the following contents:
# Denotes how many instances of the process should be started, >= 0. # Optional, defaults to 1 instance. #instance.count = 1 # What working directory should the executable start in? # Optional, defaults to the current working directory. #executable.workingDir = /path/to/cwd # The executable to start, should be the fully qualified path to the # executable. # Mandatory, no default. executable.name = /path/to/java # The arguments for the executable. # Mandatory, no default. executable.args = -jar /path/to/jar # The OSGi-filter clause which should resolve to a (single!) # ProcessStreamListener instance. When given, it will be used to provide # access to the launched process' stdin/stdout streams. NOTE: if you interact # with the process this way, it could be that the process only terminates # when you *explicitly* close the stdin stream. # Optional, defaults to an empty/no filter. #executable.processStreamListener = # The OSGi-filter clause that should resolve to a ProcessLifecycleListener # service-instance. When given, it will be used to provide hooks to when the # executable is (re)started and stopped. # Optional, defaults to an empty/no filter. #executable.processLifecycleListener = # When 'true' the process will automatically be restarted when it terminates # with a 'abnormal' exit value (see 'executable.normalExitValue'). Any # defined process stream listener will be re-invoked with the newly started # process. # Optional, defaults to 'false'. #executable.respawnAutomatically = false # Denotes what the 'normal' exit value of the process is, so the launcher can # determine when a process is terminated abnormally. # Optional, defaults to 0. #executable.normalExitValue = 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|