ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Gainty <mgai...@hotmail.com>
Subject RE: how to deploy the process avilable in another folder
Date Tue, 26 Aug 2008 21:22:12 GMT

<target name="predeploy">
<target name="deploy" depends="predeploy">

HTH/
Martin 
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business of Sender.
This transmission is of a confidential nature and Sender does not endorse distribution to
any party other than intended recipient. Sender does not necessarily endorse content contained
within this transmission. 


> Date: Tue, 26 Aug 2008 11:24:44 -0700
> From: garinapavan@yahoo.com
> To: user@ant.apache.org
> Subject: how to deploy the process avilable in another folder
> 
> 
> 
>  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=&quot;(.*):(.*)/orabpel/(.*)/${process.name}/(.*)&quot;"
> 	            replace="soap:address
> location=&quot;http://${http.hostname}:${http.port}/orabpel/${instance.name}/${process.name}/${process.version}&quot;"/>
>         -->
> 
> 	<!-- Replace any references to Revenue manager with the appropriate
> location -->
>         <replaceregexp 
>                       match="location=&quot;http://(.*)/stxRM"
>                      
> replace="location=&quot;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=&quot;location&quot;>http://(.*)/stxRM"
>                       replace="property
> name=&quot;location&quot;>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=&quot;(.*)&quot;"
>                      
> replace="SchemaName=&quot;${stagingtable.schemaname}&quot;"
> 	            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'>(.*)&lt;"
>                       replace="gackMailAddress'
> encryption='plaintext'>${gack.mail.address}&lt;"
>                       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: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

_________________________________________________________________
Get thousands of games on your PC, your mobile phone, and the web with Windows®.
http://clk.atdmt.com/MRT/go/108588800/direct/01/
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message