Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-1892

Port property is not passed to any Servicemix Ant tasks in servicemix-ant-tasks.xml (install-component, etc)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.3.2
    • tooling
    • None

    Description

      Port property (sm.port) is not passed to and has no affect on any servicemix ant tasks, but printed before each task execution. Such issue limit user to use servicemix-ant-task.xml only with default jmx/rmi port and confused.

      For example:

       <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}" />   <!-- Printed -->
               <echo message="    file=${sm.install.file}" />
      
               <jbi-install-component <!--  But not passed =( -->
                   username="${sm.username}"
                   password="${sm.password}"
                   host="${sm.host}"
                   file="${sm.install.file}"/>
            </target>
      

      have to be

       <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}" />   <!-- Printed -->
               <echo message="    file=${sm.install.file}" />
      
               <jbi-install-component 
                   username="${sm.username}"
                   password="${sm.password}"
                   host="${sm.host}"
                   port="${sm.port}" <!--  passed =) -->
                   file="${sm.install.file}"/>
            </target>
      

      Attachments

        Activity

          People

            jb@nanthrax.net Jean-Baptiste Onofré
            alexanderz Alexander Zobkov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: