-
Language:
English
-
Language:
English
Red Hat Training
A Red Hat training course is available for Red Hat Fuse
Chapter 6. Using the JBI Ant Tasks
6.1. Using the tasks as commands
Usage
ant
-f InstallDir/ant/servicemix-ant-tasks.xml
[
-Doption=value
...]
task
-Doption=value
flag.
Installing a component
Table 6.1. Options for installing a JBI component with an Ant command
Example 6.1. Installing a component using an Ant command
>
ant -f ant/servicemix-ant-task.xml -Dsm.port=1000 -Dsm.install.file=servicemix-camel-3.3.0.6-fuse-installer.zip install-component
Buildfile: ant\servicemix-ant-task.xml install-component: [echo] install-component [echo] Installing a service engine or binding component. [echo] host=localhost [echo] port=1000 [echo] file=hotdeploy\servicemix-camel-3.3.0.6-fuse-installer.zip BUILD SUCCESSFUL Total time: 7 seconds
Removing a component
Table 6.2. Options for removing a JBI component with an Ant command
Example 6.2. Removing a component using an Ant command
>
ant -f ant\servicemix-ant-task.xml -Dsm.port=1000 -Dsm.component.name=servicemix-drools uninstall-component
Buildfile: ant\servicemix-ant-task.xml uninstall-component: [echo] uninstall-component [echo] Uninstalling a Service Engine or Binding Component. [echo] host=localhost [echo] port=1000 [echo] name=servicemix-drools BUILD SUCCESSFUL Total time: 1 second
Starting a component
Table 6.3. Options for starting a JBI component with an Ant command
Example 6.3. Starting a component using an Ant command
>
ant -f ant\servicemix-ant-task.xml -Dsm.port=1000 -Dsm.component.name=servicemix-cxf-se start-component
Buildfile: ant\servicemix-ant-task.xml start-component: [echo] start-component [echo] starts a particular component (service engine or binding component) in Servicemix [echo] host=localhost [echo] port=1000 [echo] name=servicemix-cxf-se BUILD SUCCESSFUL Total time: 1 second
Stopping a component
Table 6.4. Options for stopping a JBI component with an Ant command
Example 6.4. Stopping a component using an Ant command
>
ant -f ant\servicemix-ant-task.xml -Dsm.port=1000 -Dsm.component.name=servicemix-cxf-se stop-component
Buildfile: ant\servicemix-ant-task.xml stop-component: [echo] stop-component [echo] stops a particular component (service engine or binding component) in Servicemix [echo] host=localhost [echo] port=1000 [echo] name=servicemix-cxf-se BUILD SUCCESSFUL Total time: 1 second
Shutting down a component
Table 6.5. Options for shutting down a JBI component with an Ant command
Installing a shared library
Table 6.6. Options for installing a shared library with an Ant command
Removing a shared library
Table 6.7. Options for removing a shared library with an Ant command