[jboss-svn-commits] JBL Code SVN: r13627 - labs/jbossesb/trunk/product/install.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Jul 19 01:31:14 EDT 2007
Author: kevin.conner at jboss.com
Date: 2007-07-19 01:31:13 -0400 (Thu, 19 Jul 2007)
New Revision: 13627
Added:
labs/jbossesb/trunk/product/install/jaxb.xslt
Modified:
labs/jbossesb/trunk/product/install/build.xml
Log:
Added deployIntros target: JBESB-723
Modified: labs/jbossesb/trunk/product/install/build.xml
===================================================================
--- labs/jbossesb/trunk/product/install/build.xml 2007-07-19 05:19:51 UTC (rev 13626)
+++ labs/jbossesb/trunk/product/install/build.xml 2007-07-19 05:31:13 UTC (rev 13627)
@@ -30,7 +30,8 @@
<fail unless="hierarchy.recognised" message="Cannot determine build hierarchy"/>
<target name="dependencies.jbossesb" if="hierarchy.jbossesb">
- <property name="org.jboss.esb.dist.lib" location="${product.dir}/lib"/>
+ <property name="org.jboss.esb.dist" location="${product.dir}"/>
+ <property name="org.jboss.esb.dist.lib" location="${org.jboss.esb.dist}/lib"/>
</target>
<target name="dependencies.source" if="hierarchy.source">
@@ -38,7 +39,8 @@
<fail unless="dist.exists"
message="JBossESB must be built. Please run 'ant dist' in ${product.dir}"/>
- <property name="org.jboss.esb.dist.lib" location="${product.dir}/build/jbossesb/lib"/>
+ <property name="org.jboss.esb.dist" location="${product.dir}/build/jbossesb"/>
+ <property name="org.jboss.esb.dist.lib" location="${org.jboss.esb.dist}/lib"/>
</target>
@@ -196,4 +198,26 @@
excludes="jbossesb-dependencies.jar" />
</copy>
</target>
+
+ <target name="deployIntros" depends="check.deploy.props, dependencies" description="Deploys JAXB Intros to the application server">
+ <property name="jbossws.location" location="${deploy.dir}/jbossws.sar"/>
+ <property name="jbossws.beans.location" location="${jbossws.location}/jbossws.beans/META-INF/jboss-beans.xml"/>
+ <property name="jbossws.beans.tmp.location" location="${jbossws.location}/jbossws.beans/META-INF/jboss-beans.new.xml"/>
+ <property name="jaxb.intros.jar" value="jboss-jaxb-intros.jar"/>
+ <property name="jbossesb.soap.jar" value="jbossesb-soap.jar"/>
+
+ <available property="jbossws.exists" file="${jbossws.location}" type="dir"/>
+ <fail unless="jbossws.exists" message="Please install JBossWS into the Application Server"/>
+
+ <available property="jaxb.intros.exist" file="${jbossws.location}/${jaxb.intros.jar}" type="file"/>
+ <fail if="jaxb.intros.exist" message="JAXB Intros appear to be install already"/>
+
+ <xslt style="jaxb.xslt" in="${jbossws.beans.location}" out="${jbossws.beans.tmp.location}"/>
+ <move file="${jbossws.beans.tmp.location}" tofile="${jbossws.beans.location}"/>
+
+ <copy todir="${jbossws.location}">
+ <fileset dir="${org.jboss.esb.dist}/extras/jaxbintros" includes="${jaxb.intros.jar}"/>
+ <fileset dir="${org.jboss.esb.dist.lib}/soap.esb" includes="${jbossesb.soap.jar}"/>
+ </copy>
+ </target>
</project>
Added: labs/jbossesb/trunk/product/install/jaxb.xslt
===================================================================
--- labs/jbossesb/trunk/product/install/jaxb.xslt (rev 0)
+++ labs/jbossesb/trunk/product/install/jaxb.xslt 2007-07-19 05:31:13 UTC (rev 13627)
@@ -0,0 +1,43 @@
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:deployer="urn:jboss:bean-deployer">
+ <xsl:output method="xml" encoding="UTF-8"/>
+
+ <xsl:template match="deployer:deployment/deployer:bean[1]">
+ <xsl:element name="bean" namespace="urn:jboss:bean-deployer">
+ <xsl:attribute name="name">WSEndpointJAXBIntrosCustomizationsDeployer</xsl:attribute>
+ <xsl:attribute name="class">org.jboss.wsf.spi.deployment.JAXBIntrosCustomizationsDeployer</xsl:attribute>
+ </xsl:element>
+ <xsl:comment>ESB Customization Deployer</xsl:comment>
+ <xsl:text>
+ </xsl:text>
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+
+ <xsl:template match="deployer:bean[@name='WSMainDeployerManager']/deployer:property[@name='deployers']//deployer:inject[@bean='WSEndpointHandlerDeployer']">
+ <xsl:element name="inject" namespace="urn:jboss:bean-deployer">
+ <xsl:attribute name="bean">WSEndpointJAXBIntrosCustomizationsDeployer</xsl:attribute>
+ </xsl:element>
+ <xsl:comment>ESB Customization Deployer</xsl:comment>
+ <xsl:text>
+ </xsl:text>
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+
+ <xsl:template match="deployer:bean[@name='WSWebMetaDataAdapter']">
+ <xsl:element name="bean" namespace="urn:jboss:bean-deployer">
+ <xsl:attribute name="name">WSWebMetaDataAdapter</xsl:attribute>
+ <xsl:attribute name="class">org.jboss.soa.esb.jbossws.ESBWebMetaDataAdapter</xsl:attribute>
+ </xsl:element>
+ <xsl:comment>ESB Customization Deployer</xsl:comment>
+ </xsl:template>
+
+ <xsl:template match="@*|node()">
+ <xsl:copy>
+ <xsl:apply-templates select="@*|node()"/>
+ </xsl:copy>
+ </xsl:template>
+</xsl:stylesheet>
More information about the jboss-svn-commits
mailing list