Hi,
i have a base dir which contains BPEL Process . I 'm able to deploy all of
them with ant script with out any issue.
I have a subfolder with in that base folder which also contain SOme BPEL
processes. I need to deploy them first before the base BPEL Processes gets
deployed.
Please let me know the code i need to include
I 'm pasting the code which works for me to deploy the processes which are
avialable in the base folder.
<?xml version="1.0" encoding="iso-8859-1"?>
<project name="bpel.deploy" default="installall" basedir=".">
<property file="build.properties"/>
<target name="installCustom">
<antcall target="deploy">
</antcall>
</target>
<target name="installall">
<echo>
-------
Installing All Apps
-------
</echo>
<antcall target="predeploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
<antcall target="deploy">
</antcall>
</target>
<target name="deploy">
<ant dir="${process.name}"/>
</target>
<target name="predeploy">
<echo>
--------------------------------------------------------------
| Pre Build Replacing file names
--------------------------------------------------------------
</echo>
<antcall target="updateEndpoints">
</antcall>
<antcall target="overwriteGackEmailAddress">
</antcall>
</target>
<target name="updateEndpoints">
<echo>Update Endpoints in all WSDL files and bpel.xml</echo>
<!-- Do regex replace on the bpel server's endpoints and wsdl
references file="${wsdl.file}"-->
<replaceregexp
match="http://(.*):(.*)/orabpel"
replace="http://${http.hostname}:${http.port}/orabpel"
byline="true">
<fileset dir="." casesensitive="yes">
<include name="*/bpel/bpel.xml"/>
<include name="*/bpel/*.wsdl"/>
</fileset>
</replaceregexp>
<!-- Do regex replace on the endpoint, this will update the version and
process name-->
<!--
<replaceregexp file="${wsdl.file}"
match="soap:address
location="(.*):(.*)/orabpel/(.*)/${process.name}/(.*)""
replace="soap:address
location="http://${http.hostname}:${http.port}/orabpel/${instance.name}/${process.name}/${process.version}""/>
-->
<!-- Replace any references to Revenue manager with the appropriate
location -->
<replaceregexp
match="location="http://(.*)/stxRM"
replace="location="http://${revenuemanager.hostname}/stxRM"
byline="true">
<fileset dir="." casesensitive="yes">
<include name="*/bpel/bpel.xml"/>
<include name="*/bpel/*.wsdl"/>
</fileset>
</replaceregexp>
<!-- Replace any references to Revenue manager with the appropriate
location -->
<replaceregexp
match="property
name="location">http://(.*)/stxRM"
replace="property
name="location">http://${revenuemanager.hostname}/stxRM"
byline="true">
<fileset dir="." casesensitive="yes">
<include name="*/bpel/bpel.xml"/>
<include name="*/bpel/*.wsdl"/>
</fileset>
</replaceregexp>
<!-- Replace any references to Revenue manager with the appropriate
location -->
<replaceregexp
match="SchemaName="(.*)""
replace="SchemaName="${stagingtable.schemaname}""
byline="true">
<fileset dir="." casesensitive="yes">
<include name="*/bpel/bpel.xml"/>
<include name="*/bpel/*.wsdl"/>
</fileset>
</replaceregexp>
<echo>Modified Endpoints</echo>
</target>
<target name="overwriteGackEmailAddress">
<echo>Update the distro list for Gack Emails</echo>
<!-- Replace any properties referencing Gack Email Address-->
<replaceregexp
match="gackMailAddress'
encryption='plaintext'>(.*)<"
replace="gackMailAddress'
encryption='plaintext'>${gack.mail.address}<"
byline="true">
<!--property name='gackMailAddress'
encryption='plaintext'>me</property-->
<fileset dir="." casesensitive="yes">
<include name="*/bpel/bpel.xml"/>
</fileset>
</replaceregexp>
</target>
<target name="updateRevenueManagerSchema">
<echo>Update revenueitems.xsd Revenue Manager Schema to reflect the
changes in Revenue Manager</echo>
<copy file="RevenueItem.xsd" tofile="./ProcessOrder/bpel/RevenueItem.xsd"
overwrite="true" verbose="true"/>
<copy file="RevenueItem.xsd" tofile="./PerformCarveOut/bpel/RevenueItem.xsd"
overwrite="true" verbose="true"/>
<copy file="RevenueItem.xsd" tofile="./SaveSalesOrder/bpel/RevenueItem.xsd"
overwrite="true" verbose="true"/>
</target>
</project>
--
View this message in context:
http://www.nabble.com/how-to-deploy-the-process-avilable-in-another-folder-tp19167508p19167508.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]