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

RTGov build.xml contains a lot of commented out code and a "temporary workaround"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Minor
    • fuse-7.0
    • jboss-fuse-6.3
    • RTGov
    • None
    • % %

    Description

      See the content of ${JBOSS_HOME}/scripts/overlord/rtgov/platforms/jboss-eap-64/all/build.xml after installing rtgov.

      cat scripts/overlord/rtgov/platforms/jboss-eap-64/all/build.xml                                                                                                            ⌚ 11:03:14
      <?xml version="1.0" encoding="UTF-8"?>
      <project name="RTGovServer" basedir="." >
      
      	<property name="database" value="h2" />
      	<property file="jdbc/${database}.properties" />
          <property name="overlord-commons.path" location="../../../overlord-commons" />
      
      	<!-- <target name="install" depends="create.schema" > -->
              <target name="install">
      		<ant antfile="build.xml" target="install"
      				dir="${overlord-commons.path}" >
      			<property name="overlord-commons.appserver.dir" location="${path}" />
      			<property name="overlord-commons.idp.file" value="${overlord-commons.path}/overlord-commons-idp-eap6.war" />
                  <property name="overlord-commons.eap-dist.file" value="${overlord-commons.path}/overlord-commons-dist-eap6.zip" />
      			<property name="overlord-commons.services.file" value="${overlord-commons.path}/overlord-commons-services.jar" />
      			<property name="overlord-commons.auth.file" value="${overlord-commons.path}/overlord-commons-auth.jar" />
      			<property name="overlord-commons.auth.jboss7.file" value="${overlord-commons.path}/overlord-commons-auth-jboss7.jar" />
      			<property name="overlord-commons.auth.tomcat7.file" value="${overlord-commons.path}/overlord-commons-auth-tomcat7.jar" />
      		    <property name="overlord-commons.ant.jar" value="${overlord-commons.path}/overlord-commons-ant.jar;${overlord-commons.path}/commons-lang.jar;${overlord-commons.path}/picketbox.jar" />
      			<!-- Temporary workaround - version needs to be correct in the called ant script -->
      			<property name="version.org.overlord.overlord-commons" value="2.0.15.Final" />
      
      		</ant>
      
      		<!-- Install Runtime Governance -->
      
      <!--
      	    <property name="overlord-rtgov.dir.xslt" location="xslt" />
      	    <transformConfig config="${path}/standalone/configuration/standalone.xml" stylesDir="${overlord-rtgov.dir.xslt}" />
              <transformConfig config="${path}/standalone/configuration/standalone-full.xml" stylesDir="${overlord-rtgov.dir.xslt}" />
              <transformConfig config="${path}/standalone/configuration/standalone-full-ha.xml" stylesDir="${overlord-rtgov.dir.xslt}" />
              <transformConfig config="${path}/standalone/configuration/standalone-ha.xml" stylesDir="${overlord-rtgov.dir.xslt}" />
              <transformConfig config="${path}/domain/configuration/domain.xml" stylesDir="${overlord-rtgov.dir.xslt}" />
      -->
      
      	</target>
      
      	<target name="uninstall" depends="drop.schema" >
      		<ant antfile="build.xml" target="uninstall"
      				dir="${overlord-commons.path}" >
      			<property name="overlord-commons.appserver.dir" location="${path}" />
      			<property name="overlord-commons.idp.file" value="${overlord-commons.path}/overlord-commons-idp-eap6.war" />
                  <property name="overlord-commons.eap-dist.file" value="${overlord-commons.path}/overlord-commons-dist-eap6.zip" />
      			<property name="overlord-commons.services.file" value="${overlord-commons.path}/overlord-commons-services.jar" />
      			<property name="overlord-commons.auth.file" value="${overlord-commons.path}/overlord-commons-auth.jar" />
      			<property name="overlord-commons.auth.jboss7.file" value="${overlord-commons.path}/overlord-commons-auth-jboss7.jar" />
      			<property name="overlord-commons.auth.tomcat7.file" value="${overlord-commons.path}/overlord-commons-auth-tomcat7.jar" />
      		    <property name="overlord-commons.ant.jar" value="${overlord-commons.path}/overlord-commons-ant.jar" />
      			<!-- Temporary workaround - version needs to be correct in the called ant script -->
      			<property name="version.org.overlord.overlord-commons" value="2.0.15.Final" />
      
      		</ant>
      
      		<delete dir="${path}/modules/org/overlord/rtgov/eap/deployments"/>
      	    <!-- Deprecated, but harmless -->
      		<delete file="${path}/standalone/configuration/overlord-rtgov.properties"/>
      	</target>
      
      	<!-- ### LOG PROPERTIES ################################################# -->
      	<target name="log.properties">
      		<echo message="database....... ${database}" />
      		<echo message="jdbc driver.... ${driver}" />
      		<echo message="connection RTGov url....... ${connection.rtgov.url}" />
      		<echo message="username.. ${username}" />
      	</target>
      
      	<!-- ### CREATE SCHEMA ############################################# -->
              <!--
      	<target name="create.schema"
      			depends="log.properties"
      			description="creates the rtgov tables in the database">
      		<sql driver="${driver}"
      				url="${connection.rtgov.url}"
      				userid="${username}"
      				password="${password}"
      				onerror="continue"
      				src="sql/${database}.sql">
      			<classpath>
      				<fileset dir="jdbc/drivers">
      					<include name="*.jar"/>
      				</fileset>
      			</classpath>
      		</sql>
      	</target>
      -->
      
      	<!-- ### DROP SCHEMA ############################################### -->
      	<target name="drop.schema"
      			depends="log.properties"
      			description="drops the rtgov tables from the database">
      		<sql driver="${driver}"
      				url="${connection.rtgov.url}"
      				userid="${username}"
      				password="${password}"
      				onerror="continue"
      				src="sql/${database}.drop.sql">
      			<classpath>
      				<fileset dir="jdbc/drivers">
      					<include name="*.jar"/>
      				</fileset>
      			</classpath>
      		</sql>
      	</target>
      
      <!--
        <macrodef name="transformConfig">
          <attribute name="config" />
          <attribute name="stylesDir" />
          <sequential>
            <xslt
              style="@{stylesDir}/addConfiguration-jboss-eap-6.xslt"
              in="@{config}"
              out="${basedir}/_tmp_standalone-ms.xml" />
            <copy file="${basedir}/_tmp_standalone-ms.xml" tofile="@{config}" overwrite="true" />
            <delete file="${basedir}/_tmp_standalone-ms.xml" />
            <xslt
              style="@{stylesDir}/addDeployments-jboss-eap-6.xslt"
              in="@{config}"
              out="${basedir}/_tmp_standalone-ms.xml" />
            <copy file="${basedir}/_tmp_standalone-ms.xml" tofile="@{config}" overwrite="true" />
            <delete file="${basedir}/_tmp_standalone-ms.xml" />
          </sequential>
        </macrodef>
      -->
      </project>
      
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: