< : Commandline>

Description

Commandline objects help handling command lines specifying processes to execute. The class can be used to define a command line as nested elements or as a helper to define a command line by an application.

<someelement>
  <acommandline executable="/executable/to/run">
    <argument value="argument 1" />
    <argument line="argument_1 argument_2 argument_3" />
    <argument value="argument 4" />
  </acommandline>
</someelement>
The element someelement must provide a method createAcommandline which returns an instance of this class.

Parameters

Attribute Description Type Required?
executable Sets the executable to run. All file separators in the string are converted to the platform specific value String ?

Parameters accepted as nested elements

<marker>

Class to keep track of the position of an Argument.

This class is there to support the srcfile and targetfile elements of <execon> and <transform> - don't know whether there might be additional use cases.

--SB
Attribute Description Type Required

<argument>

Used for nested xml command line definitions.
Attribute Description Type Required
line Line to split into several commandline arguments. String ?
file Sets a single commandline argument to the absolute filename of the given file. File ?
pathref Sets a single commandline argument from a reference to a path - ensures the right separator for the local platform is used. Reference ?
value Sets a single commandline argument. String ?
path Sets a single commandline argument and treats it like a PATH - ensures the right separator for the local platform is used. Path ?