With Command you can launch command (Ant target, Maven goal,...) with Eclipse wizard page to build/generate project (WEB, Struts,...). Command is defined into output of XML component and can launch for instance target of Ant build.xml file.
XUL controls value can be used into command properties.
XML command element defined into output of XML component describe command to launch. The following sample is able to launch command (Ant target) name_of_myCommand defined into path_of_myCommandConfig configuration file :
<?xml version="1.0" encoding="UTF-8"?> <component> ... <output> <command type="ant" uri="path_of_myCommandConfig" name="name_of_myCommand" /> ... </output> ... </component>
|Attribute name||Description||Required ?|
|type||Command engine type (Ant, Maven,...). By default type="ant" is used.||No|
|uri||URI of configuration file of commands to use. With Ant, uri is the path of the build.xml||No|
|path||Path of configuration file of commands to use. See path section.||No|
|name||Commande name to launch. With Ant, name is the target to launch.||Yes|
... <command uri="path_of_myCommandConfig" name="name_of_myCommand" /> ...
path_of_myCommandConfig is the path of configuration file of command. More exactly path_of_myCommandConfig is the uri of the configuration command file. All cmmands must be stored into Commands folder of the catalog. Command uri must start with this folder.
... <command type="ant" uri="/ant/build.xml" name="myTarget" /> ...
means there is /ant/build.xml file stored into Commands folder of catalogue. Ant target to launch is myTarget.
You can use path to use ant/build.xml file :
... <command type="ant" path="catalog:/Commands/ant/build.xml" name="myTarget" /> ...