Tuesday, May 28, 2013

Ant tasks for BPM application

Some Useful ant tasks to package and deploy BPM applications

1) To package BPM application

 <target name="build">
        <property file="${OS_ENV.HOME}/build.properties"/>
                <ant antfile="${OS_ENV.MW_HOME}/jdeveloper/bin/ant-sca-package.xml"
                     inheritall="false">
                        <property name="compositeDir"
                                  value="/scratch/BPMApps/PartyApproval"/>
                        <property name="compositeName"
                                  value="ThirdPartyApproval"/>
                        <property name="revision" value="${sca.version}"/>
                        <property name="scac.application.home"
                                  value="/scratch/BPMApps"/>
                </ant>
        </target>

2) Deploy BPM application

<target name="deploy">
                <property file="${OS_ENV.HOME}/build.properties"/>
                <ant antfile="${OS_ENV.MW_HOME}/jdeveloper/bin/ant-sca-deploy.xml"
                     inheritall="false">
                        <property name="serverURL"
                                  value="http://${weblogic.machine}:${weblogic.port}"/>
                        <property name="sarLocation"
                                  value="/scratch/PartyApproval/deploy/sca_PartyApproval_rev1.0.jar"/>
                        <property name="overwrite" value="true"/>
                        <property name="user" value="${weblogic.user}"/>
                        <property name="password" value="${weblogic.password}"/>
                        <property name="forceDefault" value="true"/>
                </ant>
        </target>
3) Undeploy BPM Application

 <target name="undeploy">
                <property file="${OS_ENV.HOME}/build.properties"/>
                <ant antfile="${OS_ENV.MW_HOME}/jdeveloper/bin/ant-sca-deploy.xml"
                     inheritall="false" target="undeploy">
                   
                        <property name="serverURL"
                                  value="http://${weblogic.machine}:${weblogic.port}"/>
                        <property name="compositeName"
                                  value="ThirdPartyApproval"/>
                        <property name="sarLocation"
                                  value="/scratch/PartyApproval/deploy/sca_PartyApproval_rev1.0.jar"/>
                        <property name="revision" value="${sca.version}"/>
                        <property name="user" value="${weblogic.user}"/>
                        <property name="password" value="${weblogic.password}"/>
                </ant>
        </target>

No comments: