You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ff...@apache.org on 2009/02/09 04:48:34 UTC

svn commit: r742245 - in /servicemix/smx4/features/trunk/assembly/src/main: descriptors/ distribution/ant/

Author: ffang
Date: Mon Feb  9 03:48:33 2009
New Revision: 742245

URL: http://svn.apache.org/viewvc?rev=742245&view=rev
Log:
[SMX4-207]add ant script which is used for management JBI artifacts using Mbeans into distributions

Added:
    servicemix/smx4/features/trunk/assembly/src/main/distribution/ant/
    servicemix/smx4/features/trunk/assembly/src/main/distribution/ant/README.txt   (with props)
    servicemix/smx4/features/trunk/assembly/src/main/distribution/ant/servicemix-ant-task.xml   (with props)
    servicemix/smx4/features/trunk/assembly/src/main/distribution/ant/servicemix_ant_taskdef.properties   (with props)
Modified:
    servicemix/smx4/features/trunk/assembly/src/main/descriptors/unix-bin.xml
    servicemix/smx4/features/trunk/assembly/src/main/descriptors/windows-bin.xml

Modified: servicemix/smx4/features/trunk/assembly/src/main/descriptors/unix-bin.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/assembly/src/main/descriptors/unix-bin.xml?rev=742245&r1=742244&r2=742245&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/assembly/src/main/descriptors/unix-bin.xml (original)
+++ servicemix/smx4/features/trunk/assembly/src/main/descriptors/unix-bin.xml Mon Feb  9 03:48:33 2009
@@ -77,6 +77,11 @@
             <outputDirectory>/etc/</outputDirectory>
             <lineEnding>unix</lineEnding>
         </fileSet>
+        <fileSet>
+            <directory>src/main/distribution/ant</directory>
+            <outputDirectory>/ant</outputDirectory>
+            <lineEnding>unix</lineEnding>
+        </fileSet>
 
         <!-- Copy over the examples -->
         <fileSet>

Modified: servicemix/smx4/features/trunk/assembly/src/main/descriptors/windows-bin.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/assembly/src/main/descriptors/windows-bin.xml?rev=742245&r1=742244&r2=742245&view=diff
==============================================================================
--- servicemix/smx4/features/trunk/assembly/src/main/descriptors/windows-bin.xml (original)
+++ servicemix/smx4/features/trunk/assembly/src/main/descriptors/windows-bin.xml Mon Feb  9 03:48:33 2009
@@ -57,6 +57,11 @@
           <outputDirectory>/etc/</outputDirectory>
           <lineEnding>dos</lineEnding>
       </fileSet>
+      <fileSet>
+            <directory>src/main/distribution/ant</directory>
+            <outputDirectory>/ant</outputDirectory>
+            <lineEnding>dos</lineEnding>
+        </fileSet>
 
       <!-- Copy over jar files -->
       <fileSet>

Added: servicemix/smx4/features/trunk/assembly/src/main/distribution/ant/README.txt
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/assembly/src/main/distribution/ant/README.txt?rev=742245&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/assembly/src/main/distribution/ant/README.txt (added)
+++ servicemix/smx4/features/trunk/assembly/src/main/distribution/ant/README.txt Mon Feb  9 03:48:33 2009
@@ -0,0 +1,254 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+    Servicemix Ant Task Help.
+    ==========================================================
+    Usage : ant -f <fullpath>/servicemix-ant-task.xml [options] [target]
+    options: -D<property>=<value> use value for given property
+    
+    Targets Available:
+    ----------------------------------------------------------
+    target : install-component 
+       - Use to install service engine or binding component.
+
+    options :
+        sm.username       : Servicemix user name.
+        sm.password       : Servicemix password.
+        sm.host           : host name where Servicemix is running.
+        sm.port           : port where Servicemix is listening.
+        sm.install.file   : file path for installing service engine or binding component.
+
+    Example :
+     ant -f servicemix-ant-task.xml -Dsm.install.file=testarchive.jar install-component
+     
+    ----------------------------------------------------------
+    target : uninstall-component 
+        - use to uninstall service engine or binding component.
+    
+    options :        
+        sm.username       : Servicemix user name.
+        sm.password       : Servicemix password.
+        sm.host           : host name where Servicemix is running.
+        sm.port           : port where Servicemix is listening.
+        sm.component.name : name of service engine or binding component to uninstall.
+    
+    Example :
+    ant -f servicemix-ant-task.xml -Dsm.component.name=testarchive uninstall-component
+
+    ----------------------------------------------------------
+    target : install-shared-library 
+        - installs shared library to Servicemix.
+    
+    options :        
+        sm.username       : Servicemix user name.
+        sm.password       : Servicemix password.
+        sm.host           : host name where Servicemix is running.
+        sm.port           : port where Servicemix is listening.
+        sm.install.file   : zip file path for installing shared library installation file.
+    
+    Example :
+    ant -f servicemix-ant-task.xml -Dsm.install.file=/dir/sharedlib.zip install-shared-library  
+                
+    ----------------------------------------------------------
+    target : uninstall-shared-library 
+        - uninstalls shared library to Servicemix.
+    
+    options :        
+        sm.username            : Servicemix user name.
+        sm.password            : Servicemix password.
+        sm.host                : host name where Servicemix is running.
+        sm.port                : port where Servicemix is listening.
+        sm.shared.library.name : uninstall shared library, given name.
+    
+    Example :
+    ant -f servicemix-ant-task.xml -Dsm.shared.library.name="sharedlibname" uninstall-shared-library  
+                
+    ----------------------------------------------------------
+    target : start-component 
+        - starts service engine or binding component in Servcemix.
+    
+    options :        
+        sm.username        : Servicemix user name.
+        sm.password        : Servicemix password.
+        sm.host            : host name where Servicemix is running.
+        sm.port            : port where Servicemix is listening.
+        sm.component.name  : component name, service engine or binding component to start.
+    
+    Example :
+    ant -f servicemix-ant-task.xml -Dsm.component.name=componentname start-component  
+
+    ----------------------------------------------------------
+    target : stop-component 
+        - stop service engine or binding component in Servicemix.
+    
+    options :        
+        sm.username        : Servicemix user name.
+        sm.password        : Servicemix password.
+        sm.host            : host name where Servicemix is running.
+        sm.port            : port where Servicemix is listening.
+        sm.component.name  : component name, service engine or binding component to stop.
+    
+    Example :
+    ant -f servicemix-ant-task.xml -Dsm.component.name=componentname stop-component  
+
+    ----------------------------------------------------------
+    target : shutdown-component 
+        - shutdown service engine or binding component in Servicemix.
+    
+    options :        
+        sm.username        : Servicemix user name.
+        sm.password        : Servicemix password.
+        sm.host            : host name where Servicemix is running.
+        sm.port            : port where Servicemix is listening.
+        sm.component.name  : component name, service engine or binding component to shutdown.
+    
+    Example :
+    ant -f servicemix-ant-task.xml -Dsm.component.name=componentname shutdown-component  
+
+    ----------------------------------------------------------
+    target : deploy-service-assembly 
+        - deploys a service assembly into Servicemix.
+    
+    options :        
+        sm.username        : Servicemix user name.
+        sm.password        : Servicemix password.
+        sm.host            : host name where Servicemix is running.
+        sm.port            : port where Servicemix is listening.
+        sm.deploy.file     : fully qualified service assembly file path.
+    
+    Example :
+    ant -f servicemix-ant-task.xml -Dsm.deploy.file deploy-service-assembly  
+
+    ----------------------------------------------------------
+    target : undeploy-service-assembly 
+        - undeploys a service assembly from Servicemix.
+    
+    options :        
+        sm.username        : Servicemix user name.
+        sm.password        : Servicemix password.
+        sm.host            : host name where Servicemix is running.
+        sm.port            : port where Servicemix is listening.
+        sm.service.assembly.name  : service assembly name previously deployed. 
+    
+    Example :
+    ant -f servicemix-ant-task.xml -Dsm.service.assembly.name undeploy-service-assemply  
+
+    ----------------------------------------------------------
+    target : start-service-assembly 
+        - starts a service assembly in Servicemix.
+    
+    options :        
+        sm.username        : Servicemix user name.
+        sm.password        : Servicemix password.
+        sm.host            : host name where Servicemix is running.
+        sm.port            : port where Servicemix is listening.
+        sm.service.assembly.name : service assembly name to start.
+    
+    Example :
+    ant -f servicemix-ant-task.xml -Dsm.service.assembly.name start-service-assemply  
+
+    ----------------------------------------------------------
+    target : stop-service-assembly 
+        - stops service assembly in Servicemix.
+    
+    options :        
+        sm.username        : Servicemix user name.
+        sm.password        : Servicemix password.
+        sm.host            : host name where Servicemix is running.
+        sm.port            : port where Servicemix is listening.
+        sm.service.assembly.name : service assembly name to stop.
+    
+    Example :
+    ant -f servicemix-ant-task.xml -Dsm.service.assembly.name stop-service-assembly  
+
+    ----------------------------------------------------------
+    target : shutdown-service-assembly 
+        - shutdowns service assembly in Servicemix.
+    
+    options :        
+        sm.username        : Servicemix user name.
+        sm.password        : Servicemix password.
+        sm.host            : host name where Servicemix is running.
+        sm.port            : port where Servicemix is listening.
+        sm.service.assembly.name : service assembly name to shutdown.
+    
+    Example :
+    ant -f servicemix-ant-task.xml -Dsm.service.assembly.name shutdown-service-assemply  
+
+    ----------------------------------------------------------
+    target : list-service-engines 
+        - Prints the information about all the service engine in Servicemix.
+    
+    options :        
+        sm.username        : Servicemix user name.
+        sm.password        : Servicemix password.
+        sm.host            : host name where Servicemix is running.
+        sm.port            : port where Servicemix is listening.
+        sm.state           : component state
+        sm.service.assembly.name : service assembly name to list.
+        sm.shared.library.name : shared library name to list.
+
+    Example :
+    ant -f servicemix-ant-task.xml list-service-engines  
+
+    ----------------------------------------------------------
+    target : list-binding-components 
+        - Prints the information about all binding components in Servicemix.
+    
+    options :        
+        sm.username        : Servicemix user name.
+        sm.password        : Servicemix password.
+        sm.host            : host name where Servicemix is running.
+        sm.port            : port where Servicemix is listening.
+        sm.state           : component state to list
+        sm.shared.library.name : shared library name to list.
+        sm.service.assembly.name : service assembly name to list.
+
+    Example :
+    ant -f servicemix-ant-task.xml list-binding-components  
+
+    ----------------------------------------------------------
+    target : list-shared-libraries 
+        - Prints the information all about the shared library in Servicemix.
+    
+    options :        
+        sm.username        : Servicemix user name.
+        sm.password        : Servicemix password.
+        sm.host            : host name where Servicemix is running.
+        sm.port            : port where Servicemix is listening.
+        sm.component.name  : component name to list.
+        sm.shared.library.name : shared library name to list.
+
+    Example :
+    ant -f servicemix-ant-task.xml list-shared-libraries   
+
+    ----------------------------------------------------------
+    target : list-service-assemblies 
+        - list deployed Service Assemblies in Servicemix.
+    
+    options :        
+        sm.username        : Servicemix user name.
+        sm.password        : Servicemix password.
+        sm.host            : host name where Servicemix is running.
+        sm.port            : port where Servicemix is listening.
+        sm.state           : component state to list
+        sm.component.name  : component name to list.
+        sm.service.assembly.name : service assembly name to list.
+        
+    Example :
+    ant -f servicemix-ant-task.xml list-service-assemblies  
+

Propchange: servicemix/smx4/features/trunk/assembly/src/main/distribution/ant/README.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/smx4/features/trunk/assembly/src/main/distribution/ant/README.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: servicemix/smx4/features/trunk/assembly/src/main/distribution/ant/servicemix-ant-task.xml
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/assembly/src/main/distribution/ant/servicemix-ant-task.xml?rev=742245&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/assembly/src/main/distribution/ant/servicemix-ant-task.xml (added)
+++ servicemix/smx4/features/trunk/assembly/src/main/distribution/ant/servicemix-ant-task.xml Mon Feb  9 03:48:33 2009
@@ -0,0 +1,588 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+-->
+<project basedir="." default="help" name="servicemix-ant-task">
+    <description>
+        This ant script contains the Servicemix ant tasks and the targets and properties.
+     </description>
+
+    <!-- default value for the location of the Servicemix task definitions file -->
+    <property name="servicemix.taskdefs" location="servicemix_ant_taskdef.properties"/>
+    
+        
+    <!-- Servicemix ant task definitions  -->
+    <taskdef file="${servicemix.taskdefs}">
+        <classpath id="servicemix.classpath">            
+            <fileset dir="../system" includes="**/*.jar"/>
+        </classpath>
+    </taskdef>
+    
+    
+    <!-- properties used as attribute values for Servicemix Ant Task. 
+         command line args can override the values. -->
+        
+    <!-- default username. -->
+    <property name="sm.username" value="" />
+    
+    <!-- default password -->
+    <property name="sm.password" value="" />
+    
+    <!-- default host.-->
+    <property name="sm.host" value="localhost" />
+    
+    <!-- default port. -->
+    <property name="sm.port" value="1099" />
+    
+    
+    <!-- Command Line Argumants can override the following values. -->
+     
+    <!-- Property files -->
+    <property name="sm.state" value="" />
+    <property name="sm.install.file" value="" />
+    <property name="sm.component.name" value="" />
+    <property name="sm.shared.library.name" value="" />
+    <property name="sm.deploy.file" value="" />
+    <property name="sm.service.assembly.name" value="" />
+    
+          
+     <!-- Ant Task Targets -->
+     
+     <!-- install-component task -->
+     <target name="install-component" description="Installs service engine or binding component with installation parameters.">
+         <echo message=" install-component" />
+         <echo message=" Installing a service engine or binding component."/>
+         <echo message="    host=${sm.host}" />
+         <echo message="    port=${sm.port}" />
+         <echo message="    file=${sm.install.file}" />
+         
+         <jbi-install-component
+             username="${sm.username}" 
+             password="${sm.password}"
+             host="${sm.host}"
+             file="${sm.install.file}"/>  
+      </target>
+     
+     <!-- uninstall-component task -->
+     <target name="uninstall-component" description="Uninstalls service engine or binding component.">
+         <echo message=" uninstall-component" />
+         <echo message=" Uninstalling a Service Engine or Binding Component." />
+         <echo message="    host=${sm.host}" />
+         <echo message="    port=${sm.port}" />
+         <echo message="    name=${sm.component.name}" />
+         <jbi-uninstall-component
+             username="${sm.username}" 
+             password="${sm.password}"
+             host="${sm.host}"
+             name="${sm.component.name}"
+         />
+         
+     </target>
+     
+     <!-- install-shared-library -->
+     <target name="install-shared-library" description="Installs shared library.">
+        <echo message=" install-shared-library" />
+        <echo message=" Installs a shared library in Servicemix." />
+        <echo message="    host=${sm.host}" />
+        <echo message="    port=${sm.port}" />
+        <echo message="    file=${sm.install.file}" /> 
+        
+        <jbi-install-shared-library
+            username="${sm.username}" 
+            password="${sm.password}"
+            host="${sm.host}"
+            file="${sm.install.file}"
+        />
+     </target>
+     
+     <!-- uninstall-shared-library -->
+     <target name="uninstall-shared-library" description="Uninstalls shared library.">
+         <echo message=" uninstall-shared-library" />
+         <echo message=" Uninstall a previously installed shared library in Servicemix." />
+         <echo message="    host=${sm.host}" />
+         <echo message="    port=${sm.port}" />
+         <echo message="    name=${sm.shared.library.name}" />
+         
+         <jbi-uninstall-shared-library
+            username="${sm.username}" 
+            password="${sm.password}"
+            host="${sm.host}"
+            name="${sm.shared.library.name}"    
+        />
+         
+     </target>
+
+     <!-- start-component -->
+     <target name="start-component" description="starts a particular Servicemix component, service-engine or binding component.">
+         <echo message=" start-component" />
+         <echo message=" starts a particular component (service engine or binding component) in Servicemix" />
+         <echo message="    host=${sm.host}" />
+         <echo message="    port=${sm.port}" />
+         <echo message="    name=${sm.component.name}" />
+         
+         <jbi-start-component
+            username="${sm.username}" 
+            password="${sm.password}"
+            host="${sm.host}"
+            name="${sm.component.name}"        
+        />
+     
+     </target>
+     
+     <!-- stop-component -->
+     <target name="stop-component" description="stops a particular Servicemix component, service engine or binding component.">
+         <echo message=" stop-component" />
+         <echo message=" stops a particular component (service engine or binding component) in Servicemix" />
+         <echo message="    host=${sm.host}" />
+         <echo message="    port=${sm.port}" />
+         <echo message="    name=${sm.component.name}" />
+         
+         <jbi-stop-component
+            username="${sm.username}" 
+            password="${sm.password}"
+            host="${sm.host}"
+            name="${sm.component.name}"            
+         />
+          
+     </target>
+     
+     <!-- shut-down-component -->
+     <target name="shut-down-component" description="shut downs a particular Servicemix component.">
+         <echo message=" shut-down-component" />
+         <echo message=" shuts down a particular component (service engine or binding component) in Servicemix" />
+         <echo message="    host=${sm.host}" />
+         <echo message="    port=${sm.port}" />
+         <echo message="    name=${sm.component.name}" />
+         
+         <jbi-shut-down-component
+             username="${sm.username}" 
+             password="${sm.password}"
+             host="${sm.host}"
+             name="${sm.component.name}"                
+         />
+     </target>
+     
+     <!-- deploy-service-assembly -->
+     <target name="deploy-service-assembly" description="deploys service assembly in Servicemix.">
+         <echo message=" deploy-service-assembly" />
+         <echo message=" deploys a service assembly in Servicemix." />
+         <echo message="    host=${sm.host}" />
+         <echo message="    port=${sm.port}" />
+         <echo message="    file=${sm.deploy.file}" />
+         
+         <jbi-deploy-service-assembly
+             username="${sm.username}" 
+             password="${sm.password}"
+             host="${sm.host}"
+             file="${sm.deploy.file}"                    
+         />
+     </target>
+     
+     <!-- undeploy-service-assembly -->
+     <target name="undeploy-service-assembly" description="undeploys a previously deployed service assembly in Servicemix.">
+         <echo message=" undeploy-service-assembly" />
+         <echo message=" undeploys a previously deployed service assembly in Sericemix."/>
+         <echo message="    host=${sm.host}" />
+         <echo message="    port=${sm.port}" />
+         <echo message="    name=${sm.service.assembly.name}" />
+         
+         <jbi-undeploy-service-assembly
+             username="${sm.username}" 
+             password="${sm.password}"
+             host="${sm.host}"
+             name="${sm.service.assembly.name}"                        
+         />
+     
+     </target>
+     
+     <!-- start-service-assembly -->
+     <target name="start-service-assembly" description="starts a particular service assembly in Servicemix.">
+         <echo message=" start-service-assembly" />
+         <echo message=" starts a particular service assembly in Servicemix." />
+         <echo message="    host=${sm.host}" />
+         <echo message="    port=${sm.port}" />
+         <echo message="    name=${sm.service.assembly.name}" />
+         
+         <jbi-start-service-assembly
+             username="${sm.username}" 
+             password="${sm.password}"
+             host="${sm.host}"
+             name="${sm.service.assembly.name}"                            
+         />
+         
+     </target>
+     
+     <!-- stop-service-assembly -->
+     <target name="stop-service-assembly" description="stops a particular service assembly in Servicemix.">
+         <echo message=" stop-service-assembly" />
+         <echo message=" stops a particular service assembly in Servicemix." />
+         <echo message="    host=${sm.host}" />
+         <echo message="    port=${sm.port}" />
+         <echo message="    name=${sm.service.assembly.name}" /> 
+
+         <jbi-stop-service-assembly
+             username="${sm.username}" 
+             password="${sm.password}"
+             host="${sm.host}"
+             name="${sm.service.assembly.name}"                                
+         />     
+     </target>
+     
+     <!-- shut-down-service-assembly -->
+     <target name="shut-down-service-assembly" description="shuts down a particular service assembly in Servicemix.">
+         <echo message=" shut-down-service-assembly" />
+         <echo message=" shuts down a particular service assembly in Servicemix." />
+         <echo message="    host=${sm.host}" />
+         <echo message="    port=${sm.port}" />
+         <echo message="    name=${sm.service.assembly.name}" /> 
+
+         <jbi-shut-down-service-assembly
+             username="${sm.username}" 
+             password="${sm.password}"
+             host="${sm.host}"
+             name="${sm.service.assembly.name}"                                    
+         />
+     
+     </target>
+     
+     <!-- list-service-engines -->
+     <target name="list-service-engines" description="prints information about all of the Service Engines in Servicemix.">
+         <echo message=" list-service-engines" />
+         <echo message=" Prints information about all of the Service Engines in Servicemix." />
+         <echo message="    host=${sm.host}" />
+         <echo message="    port=${sm.port}" />
+         <echo message="    state=${sm.state}" />
+         <echo message="    serviceAssemblyName=${sm.service.assembly.name}" />
+         <echo message="    sharedLibraryName=${sm.shared.library.name}" />
+
+         <jbi-list-service-engines
+             username="${sm.username}"
+             password="${sm.password}"
+             host="${sm.host}"
+             state="${sm.state}"
+             serviceAssemblyName="${sm.service.assembly.name}"
+             sharedLibraryName="${sm.shared.library.name}"
+         />
+     
+     </target>
+     
+     <!-- list-binding-components -->
+     <target name="list-binding-components" description="prints information about all of the Binding Components in Servicemix.">
+         <echo message=" list-binding-components" />
+         <echo message=" Prints information about the binding components installed in servicemix." />
+         <echo message="    host=${sm.host}" />
+         <echo message="    port=${sm.port}" />
+         <echo message="    state=${sm.state}" />
+         <echo message="    sharedLibraryName=${sm.shared.library.name}" />
+         <echo message="    serviceAssemblyName=${sm.service.assembly.name}" />
+
+         <jbi-list-binding-components
+             username="${sm.username}" 
+             password="${sm.password}"
+             host="${sm.host}"
+             state="${sm.state}"
+             sharedLibraryName="${sm.shared.library.name}"
+             serviceAssemblyName="${sm.service.assembly.name}"
+         />
+     
+     </target>
+     
+     <!-- list-shared-libraries -->
+     <target name="list-shared-libraries" description="prints information about all of the Shared Libraries installed in Servicemix.">
+         <echo message=" list-shared-libraries" />
+         <echo message=" Prints information about all shared libraries installed in Servicemix." />
+         <echo message="    host=${sm.host}" />
+         <echo message="    port=${sm.port}" />
+         <echo message="    componentName=${sm.component.name}" />
+         <echo message="    sharedLibraryName=${sm.shared.library.name}" />
+
+         <jbi-list-shared-libraries
+             username="${sm.username}" 
+             password="${sm.password}"
+             host="${sm.host}"
+             componentName="${sm.component.name}"
+             sharedLibraryName="${sm.shared.library.name}"
+      />
+      </target>
+     
+     <!-- list-service-assemblies -->
+     <target name="list-service-assemblies" description="list deployed Service Assemblies in Servicemix.">
+         <echo message=" list-service-assemblies" />
+         <echo message=" list deployed Service Assemblies in Servicemix." />
+         <echo message="    host=${sm.host}" />
+         <echo message="    port=${sm.port}" />
+         <echo message="    state=${sm.state}" />
+         <echo message="    componentName=${sm.component.name}" />
+         <echo message="    serviceAssemblyName=${sm.service.assembly.name}" />
+
+         <jbi-list-service-assemblies
+             username="${sm.username}" 
+             password="${sm.password}"
+             host="${sm.host}"
+             state="${sm.state}"
+             componentName="${sm.component.name}"
+             serviceAssemblyName="${sm.service.assembly.name}"
+         />
+     
+     </target>
+
+     <!-- Help/Usage target -->
+    <target name="help" description="Description of commands and their parameters.">
+    <echo>         
+    Servicemix Ant Task Help.
+    ==========================================================
+    Usage : ant -f &lt;fullpath>/servicemix-ant-task.xml [options] [target]
+    options: -D&lt;property>=&lt;value> use value for given property
+    
+    Targets Available:
+    ----------------------------------------------------------
+    target : install-component 
+       - Use to install service engine or binding component.
+
+    options :
+        sm.username       : Servicemix user name.
+        sm.password       : Servicemix password.
+        sm.host           : host name where Servicemix is running.
+        sm.port           : port where Servicemix is listening.
+        sm.install.file   : file path for installing service engine or binding component.
+
+    Example :
+     ant -f servicemix-ant-task.xml -Dsm.install.file=testarchive.jar install-component
+     
+    ----------------------------------------------------------
+    target : uninstall-component 
+        - use to uninstall service engine or binding component.
+    
+    options :        
+        sm.username       : Servicemix user name.
+        sm.password       : Servicemix password.
+        sm.host           : host name where Servicemix is running.
+        sm.port           : port where Servicemix is listening.
+        sm.component.name : name of service engine or binding component to uninstall.
+    
+    Example :
+    ant -f servicemix-ant-task.xml -Dsm.component.name=testarchive uninstall-component
+
+    ----------------------------------------------------------
+    target : install-shared-library 
+        - installs shared library to Servicemix.
+    
+    options :        
+        sm.username       : Servicemix user name.
+        sm.password       : Servicemix password.
+        sm.host           : host name where Servicemix is running.
+        sm.port           : port where Servicemix is listening.
+        sm.install.file   : zip file path for installing shared library installation file.
+    
+    Example :
+    ant -f servicemix-ant-task.xml -Dsm.install.file=/dir/sharedlib.zip install-shared-library  
+                
+    ----------------------------------------------------------
+    target : uninstall-shared-library 
+        - uninstalls shared library to Servicemix.
+    
+    options :        
+        sm.username            : Servicemix user name.
+        sm.password            : Servicemix password.
+        sm.host                : host name where Servicemix is running.
+        sm.port                : port where Servicemix is listening.
+        sm.shared.library.name : uninstall shared library, given name.
+    
+    Example :
+    ant -f servicemix-ant-task.xml -Dsm.shared.library.name="sharedlibname" uninstall-shared-library  
+                
+    ----------------------------------------------------------
+    target : start-component 
+        - starts service engine or binding component in Servcemix.
+    
+    options :        
+        sm.username        : Servicemix user name.
+        sm.password        : Servicemix password.
+        sm.host            : host name where Servicemix is running.
+        sm.port            : port where Servicemix is listening.
+        sm.component.name  : component name, service engine or binding component to start.
+    
+    Example :
+    ant -f servicemix-ant-task.xml -Dsm.component.name=componentname start-component  
+
+    ----------------------------------------------------------
+    target : stop-component 
+        - stop service engine or binding component in Servicemix.
+    
+    options :        
+        sm.username        : Servicemix user name.
+        sm.password        : Servicemix password.
+        sm.host            : host name where Servicemix is running.
+        sm.port            : port where Servicemix is listening.
+        sm.component.name  : component name, service engine or binding component to stop.
+    
+    Example :
+    ant -f servicemix-ant-task.xml -Dsm.component.name=componentname stop-component  
+
+    ----------------------------------------------------------
+    target : shut-down-component 
+        - shut down service engine or binding component in Servicemix.
+    
+    options :        
+        sm.username        : Servicemix user name.
+        sm.password        : Servicemix password.
+        sm.host            : host name where Servicemix is running.
+        sm.port            : port where Servicemix is listening.
+        sm.component.name  : component name, service engine or binding component to shut down.
+    
+    Example :
+    ant -f servicemix-ant-task.xml -Dsm.component.name=componentname shut-down-component  
+
+    ----------------------------------------------------------
+    target : deploy-service-assembly 
+        - deploys a service assembly into Servicemix.
+    
+    options :        
+        sm.username        : Servicemix user name.
+        sm.password        : Servicemix password.
+        sm.host            : host name where Servicemix is running.
+        sm.port            : port where Servicemix is listening.
+        sm.deploy.file     : fully qualified service assembly file path.
+    
+    Example :
+    ant -f servicemix-ant-task.xml -Dsm.deploy.file deploy-service-assembly  
+
+    ----------------------------------------------------------
+    target : undeploy-service-assembly 
+        - undeploys a service assembly from Servicemix.
+    
+    options :        
+        sm.username        : Servicemix user name.
+        sm.password        : Servicemix password.
+        sm.host            : host name where Servicemix is running.
+        sm.port            : port where Servicemix is listening.
+        sm.service.assembly.name  : service assembly name previously deployed. 
+    
+    Example :
+    ant -f servicemix-ant-task.xml -Dsm.service.assembly.name undeploy-service-assembly  
+
+    ----------------------------------------------------------
+    target : start-service-assembly 
+        - starts a service assembly in Servicemix.
+    
+    options :        
+        sm.username        : Servicemix user name.
+        sm.password        : Servicemix password.
+        sm.host            : host name where Servicemix is running.
+        sm.port            : port where Servicemix is listening.
+        sm.service.assembly.name : service assembly name to start.
+    
+    Example :
+    ant -f servicemix-ant-task.xml -Dsm.service.assembly.name start-service-assembly  
+
+    ----------------------------------------------------------
+    target : stop-service-assembly 
+        - stops service assembly in Servicemix.
+    
+    options :        
+        sm.username        : Servicemix user name.
+        sm.password        : Servicemix password.
+        sm.host            : host name where Servicemix is running.
+        sm.port            : port where Servicemix is listening.
+        sm.service.assembly.name : service assembly name to stop.
+    
+    Example :
+    ant -f servicemix-ant-task.xml -Dsm.service.assembly.name stop-service-assembly  
+
+    ----------------------------------------------------------
+    target : shut-down-service-assembly 
+        - shuts down service assembly in Servicemix.
+    
+    options :        
+        sm.username        : Servicemix user name.
+        sm.password        : Servicemix password.
+        sm.host            : host name where Servicemix is running.
+        sm.port            : port where Servicemix is listening.
+        sm.service.assembly.name : service assembly name to shut down.
+    
+    Example :
+    ant -f servicemix-ant-task.xml -Dsm.service.assembly.name shut-down-service-assembly  
+
+    ----------------------------------------------------------
+    target : list-service-engines 
+        - Prints the information about all the service engine in Servicemix.
+    
+    options :        
+        sm.username        : Servicemix user name.
+        sm.password        : Servicemix password.
+        sm.host            : host name where Servicemix is running.
+        sm.port            : port where Servicemix is listening.
+        sm.state           : component state
+        sm.service.assembly.name : service assembly name to list.
+        sm.shared.library.name : shared library name to list.
+
+    Example :
+    ant -f servicemix-ant-task.xml list-service-engines  
+
+    ----------------------------------------------------------
+    target : list-binding-components 
+        - Prints the information about all binding components in Servicemix.
+    
+    options :        
+        sm.username        : Servicemix user name.
+        sm.password        : Servicemix password.
+        sm.host            : host name where Servicemix is running.
+        sm.port            : port where Servicemix is listening.
+        sm.state           : component state to list
+        sm.shared.library.name : shared library name to list.
+        sm.service.assembly.name : service assembly name to list.
+
+    Example :
+    ant -f servicemix-ant-task.xml list-binding-components  
+
+    ----------------------------------------------------------
+    target : list-shared-libraries 
+        - Prints the information all about the shared library in Servicemix.
+    
+    options :        
+        sm.username        : Servicemix user name.
+        sm.password        : Servicemix password.
+        sm.host            : host name where Servicemix is running.
+        sm.port            : port where Servicemix is listening.
+        sm.component.name  : component name to list.
+        sm.shared.library.name : shared library name to list.
+
+    Example :
+    ant -f servicemix-ant-task.xml list-shared-libraries   
+
+    ----------------------------------------------------------
+    target : list-service-assemblies 
+        - list deployed Service Assemblies in Servicemix.
+    
+    options :        
+        sm.username        : Servicemix user name.
+        sm.password        : Servicemix password.
+        sm.host            : host name where Servicemix is running.
+        sm.port            : port where Servicemix is listening.
+        sm.state           : component state to list
+        sm.component.name  : component name to list.
+        sm.service.assembly.name : service assembly name to list.
+        
+    Example :
+    ant -f servicemix-ant-task.xml list-service-assemblies  
+
+    </echo>
+    </target>
+
+
+</project>

Propchange: servicemix/smx4/features/trunk/assembly/src/main/distribution/ant/servicemix-ant-task.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/smx4/features/trunk/assembly/src/main/distribution/ant/servicemix-ant-task.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: servicemix/smx4/features/trunk/assembly/src/main/distribution/ant/servicemix-ant-task.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: servicemix/smx4/features/trunk/assembly/src/main/distribution/ant/servicemix_ant_taskdef.properties
URL: http://svn.apache.org/viewvc/servicemix/smx4/features/trunk/assembly/src/main/distribution/ant/servicemix_ant_taskdef.properties?rev=742245&view=auto
==============================================================================
--- servicemix/smx4/features/trunk/assembly/src/main/distribution/ant/servicemix_ant_taskdef.properties (added)
+++ servicemix/smx4/features/trunk/assembly/src/main/distribution/ant/servicemix_ant_taskdef.properties Mon Feb  9 03:48:33 2009
@@ -0,0 +1,34 @@
+#
+#    Licensed to the Apache Software Foundation (ASF) under one or more
+#    contributor license agreements.  See the NOTICE file distributed with
+#    this work for additional information regarding copyright ownership.
+#    The ASF licenses this file to You under the Apache License, Version 2.0
+#    (the "License"); you may not use this file except in compliance with
+#    the License.  You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#    Unless required by applicable law or agreed to in writing, software
+#    distributed under the License is distributed on an "AS IS" BASIS,
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#    See the License for the specific language governing permissions and
+#    limitations under the License.
+#
+# Servicemix Jbi Ant definitions
+# 
+jbi-install-component=org.apache.servicemix.jbi.task.InstallComponentTask
+jbi-uninstall-component=org.apache.servicemix.jbi.task.UninstallComponentTask
+jbi-install-shared-library=org.apache.servicemix.jbi.task.InstallSharedLibraryTask
+jbi-uninstall-shared-library=org.apache.servicemix.jbi.task.UninstallSharedLibraryTask
+jbi-start-component=org.apache.servicemix.jbi.task.StartComponentTask
+jbi-stop-component=org.apache.servicemix.jbi.task.StopComponentTask
+jbi-shut-down-component=org.apache.servicemix.jbi.task.ShutDownComponentTask
+jbi-deploy-service-assembly=org.apache.servicemix.jbi.task.DeployServiceAssemblyTask
+jbi-undeploy-service-assembly=org.apache.servicemix.jbi.task.UndeployServiceAssemblyTask
+jbi-start-service-assembly=org.apache.servicemix.jbi.task.StartServiceAssemblyTask
+jbi-stop-service-assembly=org.apache.servicemix.jbi.task.StopServiceAssemblyTask
+jbi-shut-down-service-assembly=org.apache.servicemix.jbi.task.ShutDownServiceAssemblyTask
+jbi-list-service-engines=org.apache.servicemix.jbi.task.ListServiceEnginesTask
+jbi-list-binding-components=org.apache.servicemix.jbi.task.ListBindingComponentsTask
+jbi-list-shared-libraries=org.apache.servicemix.jbi.task.ListSharedLibrariesTask
+jbi-list-service-assemblies=org.apache.servicemix.jbi.task.ListServiceAssembliesTask

Propchange: servicemix/smx4/features/trunk/assembly/src/main/distribution/ant/servicemix_ant_taskdef.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: servicemix/smx4/features/trunk/assembly/src/main/distribution/ant/servicemix_ant_taskdef.properties
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: servicemix/smx4/features/trunk/assembly/src/main/distribution/ant/servicemix_ant_taskdef.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain