0 Replies Latest reply on Aug 12, 2014 11:19 AM by Mylos Kathos

    Execute CLI in Bundle Recipe

    Mylos Kathos Master

      Dear all,

      I need to create an Ant recipe for distributing a Bundle with JBoss ON 3.1. Within the deployment I need at first to execute a CLI (JBoss EAP CLI) script which installs a module. This is the deployment section of my deploy.xml:

      <rhq:deployment-unit name="fixedForNow"
                            compliance="filesAndDirectories"
                                   preinstallTarget="preinstall"
                                   postinstallTarget="postinstall">
         
                 <rhq:file name="install.cli" replace="true">
                       <rhq:handover action="execute-script"/>
                  </rhq:file>  
      
                  <rhq:archive name="application.war" exploded="false">
                         <rhq:replace>
                            <rhq:fileset>
                               <include name="*.jsp"/>
                            </rhq:fileset>
                         </rhq:replace>
                  </rhq:archive>
      </rhq:deployment-unit>
      

      When I upload this script I get the following error.

      org.apache.tools.ant.BuildException:rhq:file doesn't support the nested "handover" element

      I've found this example in an RHQ discussion thread- is there an equivalent way to execute CLI with JON ?

      Thanks!