[jboss-svn-commits] JBL Code SVN: r16068 - labs/jbossesb/workspace/platform/JBESB_4_2_1_IR2/product/install.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Oct 25 11:44:12 EDT 2007
Author: tkirby
Date: 2007-10-25 11:44:12 -0400 (Thu, 25 Oct 2007)
New Revision: 16068
Added:
labs/jbossesb/workspace/platform/JBESB_4_2_1_IR2/product/install/jaxb.xslt
Modified:
labs/jbossesb/workspace/platform/JBESB_4_2_1_IR2/product/install/build.xml
Log:
wound back to ws 2.0
Modified: labs/jbossesb/workspace/platform/JBESB_4_2_1_IR2/product/install/build.xml
===================================================================
--- labs/jbossesb/workspace/platform/JBESB_4_2_1_IR2/product/install/build.xml 2007-10-25 11:12:24 UTC (rev 16067)
+++ labs/jbossesb/workspace/platform/JBESB_4_2_1_IR2/product/install/build.xml 2007-10-25 15:44:12 UTC (rev 16068)
@@ -226,13 +226,34 @@
</target>
<target name="deployIntros">
- <echo message="***** This target is no longer supported." />
+ <echo message="***** DEPRECATED: Sorry, this target has been deprecated. Please run the 'patch-jbossws' target." />
</target>
- <target name="patch-jbossws">
- <echo message="***** This target is no longer supported." />
+ <target name="patch-jbossws" 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="${org.jboss.esb.server.home}/server/${org.jboss.esb.server.config}/lib/jbossws-spi.jar"/>
+ <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"/>
+ <copy todir="${jbossws.location}">
+ <fileset dir="${org.jboss.esb.dist.lib}" includes="${jaxb.intros.jar}"/>
+ <fileset dir="${org.jboss.esb.dist.lib}/soap.esb" includes="${jbossesb.soap.jar}"/>
+ </copy>
+
+ <antcall target="apply-jbossws-xslt" />
</target>
+ <target name="apply-jbossws-xslt" unless="jaxb.intros.exist">
+ <xslt style="jaxb.xslt" in="${jbossws.beans.location}" out="${jbossws.beans.tmp.location}"/>
+ <move file="${jbossws.beans.tmp.location}" tofile="${jbossws.beans.location}"/>
+ </target>
+
<target name="init.bindings.props" depends="check.deploy.props, dependencies">
<property name="bindings.dir" location="${org.jboss.esb.server.home}/docs/examples/binding-manager"/>
<property name="bindings.location" location="${bindings.dir}/sample-bindings.xml"/>
Added: labs/jbossesb/workspace/platform/JBESB_4_2_1_IR2/product/install/jaxb.xslt
===================================================================
--- labs/jbossesb/workspace/platform/JBESB_4_2_1_IR2/product/install/jaxb.xslt (rev 0)
+++ labs/jbossesb/workspace/platform/JBESB_4_2_1_IR2/product/install/jaxb.xslt 2007-10-25 15:44:12 UTC (rev 16068)
@@ -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