Author: jeff.yuchang
Date: 2009-11-09 09:18:16 -0500 (Mon, 09 Nov 2009)
New Revision: 254
Modified:
trunk/distribution/src/main/release/install/build.xml
Log:
* update the script to remove the duplicated juddi sar if any.
Modified: trunk/distribution/src/main/release/install/build.xml
===================================================================
--- trunk/distribution/src/main/release/install/build.xml 2009-11-09 13:47:01 UTC (rev
253)
+++ trunk/distribution/src/main/release/install/build.xml 2009-11-09 14:18:16 UTC (rev
254)
@@ -52,6 +52,7 @@
<target name="deploy" description="Deploys BPEL Runtime to the
server">
<antcall target="internal.install.riftsaw.ws.stack"/>
+ <antcall target="remove.redundant.juddi" />
<echo message="Deploy BPEL runtime to JBoss server" />
<copy todir="${deployers.dir}/${bpel-deployer}">
@@ -195,6 +196,8 @@
<target name="internal.uninstall.riftsaw.into.jboss.db.sqlserver" />
<target name="internal.uninstall.riftsaw.into.jboss.db.postgres" />
+
+ <target name="internal.uninstall.riftsaw.into.jboss.db.oracle"/>
<target name="internal.install.riftsaw.ws.stack"
unless="keep.ws.stack">
<echo>Replacing the Web Service Stack to
${ws.stack}-${ws.version}</echo>
@@ -205,8 +208,6 @@
<property name="jboss510.home"
value="${org.jboss.esb.server.home}" />
<property name="jboss.server.instance"
value="${org.jboss.esb.server.config}" />
</ant>
- <!-- JBoss WS install additional juddi, duplicated with JBossESB's juddi one
-->
- <delete
dir="${org.jboss.esb.home}/server/${org.jboss.esb.server.config}/deploy/juddi-service.sar"/>
</target>
<target name="get.ws.stack" description="download ws stack"
unless="is.ws.stack.distro.available">
@@ -214,4 +215,13 @@
<get src="${ws.stack.distro.url}"
dest="${ws.stack.dir}/jbossws-${ws.stack}-${ws.version}.zip" />
</target>
+ <condition property="is.juddi.duplicated">
+ <available
file="${org.jboss.esb.home}/server/${org.jboss.esb.server.config}/deploy/juddi-service.sar"
/>
+ </condition>
+
+ <target name="remove.redundant.juddi"
if="is.juddi.duplicated">
+ <!-- JBoss WS install additional juddi, duplicated with JBossESB's juddi one,
or in cluster environment -->
+ <delete
dir="${org.jboss.esb.home}/server/${org.jboss.esb.server.config}/deploy/juddi-service.sar"/>
+ </target>
+
</project>