Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.이 콘텐츠는 선택한 언어로 제공되지 않습니다.
6.2. Using the tasks in build files
Adding the JBI tasks to build an Ant file 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
Before you can use the JBI tasks in an Ant build file, you must add the tasks using a
taskdef
element, as shown in Example 6.5.
Example 6.5. Adding the JBI tasks to an Ant build file
The build file fragment in Example 6.5 does the following:
Installing a component 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
The Ant task used to install a JBI component is
jbi-install-component
. Its attributes are listed in Table 6.8.
Example 6.6 shows an Ant target that installs the drools component.
Example 6.6. Ant target that installs a JBI component
Removing a component 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
The Ant task used to remove a JBI component is
jbi-uninstall-component
. Its attributes are listed in Table 6.9.
Example 6.7 shows an Ant target that removes the drools component.
Example 6.7. Ant target that removes a JBI component
Starting a component 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
The Ant task used to start a JBI component is
jbi-start-component
. Its attributes are listed in Table 6.10.
Example 6.8 shows an Ant target that starts the drools component.
Example 6.8. Ant target that starts a JBI component
... <target name="startDrools" description="Starts the drools engine."> <jbi-start-component port="1099" name="servicemix-drools" /> </target> ...
...
<target name="startDrools" description="Starts the drools engine.">
<jbi-start-component port="1099" name="servicemix-drools" />
</target>
...
Stopping a component 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
The Ant task used to stop a JBI component is
jbi-start-component
. Its attributes are listed in Table 6.11.
Example 6.9 shows an Ant target that stops the drools component.
Example 6.9. Ant target that stops a JBI component
... <target name="stopDrools" description="Stops the drools engine."> <jbi-stop-component port="1099" name="servicemix-drools" /> </target> ...
...
<target name="stopDrools" description="Stops the drools engine.">
<jbi-stop-component port="1099" name="servicemix-drools" />
</target>
...
Shutting down a component 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
The Ant task used to shut down a JBI component is
jbi-shut-down-component
. Its attributes are listed in Table 6.12.
Example 6.10 shows an Ant target that shuts down the drools component.
Example 6.10. Ant target that shuts down a JBI component
... <target name="shutdownDrools" description="Stops the drools engine."> <jbi-shut-down-component port="1099" name="servicemix-drools" /> </target> ...
...
<target name="shutdownDrools" description="Stops the drools engine.">
<jbi-shut-down-component port="1099" name="servicemix-drools" />
</target>
...
Installing a shared library 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
The Ant task used to install a shared library is
jbi-install-shared-library
. Its attributes are listed in Table 6.13.
Removing a shared library 링크 복사링크가 클립보드에 복사되었습니다!
링크 복사링크가 클립보드에 복사되었습니다!
The Ant task used to remove a shared library is
jbi-uninstall-shared-library
. Its attributes are listed in Table 6.14.