Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-4100

Change the install-overlord script so that it is not tied to specific directory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • jboss-fuse-6.3
    • jboss-fuse-6.2.1
    • RTGov
    • None
    • % %

      If the overlord-common.sh is the definite way how the commons will be installed (if it won't be part of the fuse-patch mechanism) then the script needs to be updated to be able to work when called from anywhere.

      Right now it is required to be ran from <eap_home> as ./scripts/overlord/rtgov/install-overlord.sh as it supplies `pwd` as "path" argument into the ant script.

      This modification work in my env and I am able to run it from anywhere:

      10:10:46 ~/work/rtgov/jboss-eap-6.4/scripts/overlord/rtgov$ cat install-overlord.sh 
      #!/bin/sh
      SCRIPT_HOME=`dirname $(readlink -f $0)`
      EAP_HOME=`readlink -f ${SCRIPT_HOME}/../../..`
      ANT_HOME=`readlink -f ${EAP_HOME}/lib`
      
      java -Dant.home=${ANT_HOME} -Dpath=${EAP_HOME} -Dappserver.id=jboss-eap-64 -cp ${ANT_HOME}/ant-launcher-1.8.3.jar org.apache.tools.ant.launch.Launcher -f ${SCRIPT_HOME}/platforms/jboss-eap-64/all/build.xml install
      
      

            dcoleman@redhat.com Darren Coleman
            avano@redhat.com Andrej Vano
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: