<launchProperty>
Scope: Java Projects
Description
This task is similar to the launch-task. In contrast to this task
you can extract launch configuration information while storing them into properties.
Arguments
| Argument | Description | Required |
|---|---|---|
| launchFile | The launch configuration file that will be launched | yes |
| mainclass | The property which will receive the fully qualified main class. | no |
| programargs | The property which will receive the program arguments. | no |
| vmargs | The property which will receive the virtual machine arguments. | no |
| workingDir | The property which will receive the working directory (resolved). | no |
| pathId | The ID of used to store the classpath in. | no |
| classpath | The property which will receive the runtime classpath for the launch configuration. | no |
| pathSeparator | Only useful in conjunction with the classpath attribute. It specifies the separator where the default path separator depends on the platforms default. | no |
Limitations
Currently the launchProperty task does not support all
configurations possible in eclipse:
- Variables are not supported: The usage of Eclipse variables is not supported.
Example
The following example shows how to get the information of a launch configuration
and start an appropriate java task using the retrieved information: