Tuesday, June 14, 2016

Oracle SOA BPEL Ant Script for composite svn checkout, weblogic build and deploy

Oracle SOA BPEL Ant Script for composite svn checkout,  weblogic build and deploy

1. Below command is used to checkout the source from svn
call "C:\Program Files\TortoiseSVN\bin\svn.exe"  checkout <SVN Path>  "C:\Oracle\SOA\" --non-interactive --no-auth-cache --username <svn user name> --password <svn password>

2. Below command will build composite jar file from the source code.
In below command, composite name is assume as "SOAComposite"

call C:\sw\apache-ant-1.9.6-bin\apache-ant-1.9.6\bin\ant -f C:\Oracle\Middleware\Oracle_Home\soa\bin\ant-sca-package.xml  -DcompositeDir=C:\Oracle\SOA\SOAComposite\SOA -DcompositeName=SOAComposite -Drevision=1.0  -Dsca.application.home=C:\Oracle\SOA\SOAComposite

3. Below command is used to deploy the jar in weblogic
/apache/ant/apache-ant-1.9.6/bin/ant -f /oracle/products/oracle_home/soa/bin/ant-sca-deploy.xml -v -DserverURL=http://<IP>:<Port> -DsarLocation=<Full Path of Composite Jar file>-Doverwrite=true  -Duser=<Weblogic User Name> -Dpassword=<Weblogic Password>  -DforceDefault=true  -Dpartition=default

You can have all three commands in a shell script or batch files.

No comments:

Post a Comment