This is what you should do to setup ANT for SOA MDS deployment.
Prerequisites:
1. Create folder ANT
2. Inside create a folder deploy
3. Set up your ANT_HOME environment variable
4. Execute command ant, to check if ant is setup correctly
Steps:
Goto ANT folder
1. Create file build.properties like below:
mds.repository=E:\JDeveloper\soamds
oracle.home=E:\Oracle\Middleware\Oracle_Home
deploy.serverURL=http://localhost:7004
deploy.user=weblogic
deploy.password=welcome1
Update values as per your machine/server.
2. Create build.xml like below:
<?xml version="1.0" encoding="UTF-8"?>
<!--
Deployment Script for MDS
Author : Nadim Warsi
-->
<project name="deployMDS" default="deployMDS">
<property file="build.properties"/>
<target name="deployMDS">
<echo>Deploy MDS</echo>
<echo>Remove and create local MDS temp folder</echo>
<delete dir="deploy"/>
<mkdir dir="deploy"/>
<zip destfile="deploy/mds.jar" compress="false">
<fileset dir="${mds.repository}/apps"/>
</zip>
<ant antfile="${oracle.home}/soa/bin/ant-sca-deploy.xml" inheritall="false" target="deploy">
<property name="wl_home" value="${oracle.home}/wlserver"/>
<property name="oracle.home" value="${oracle.home}/soa"/>
<property name="serverURL" value="${deploy.serverURL}"/>
<property name="user" value="${deploy.user}"/>
<property name="password" value="${deploy.password}"/>
<property name="overwrite" value="true"/>
<property name="forceDefault" value="true"/>
<property name="sarLocation" value="deploy/mds.jar"/>
<property name="failOnError" value="true"/>
</ant>
<echo>MDS deployment completed</echo>
</target>
</project>
3. Save all
4. Execute command: ant
5. Check your MDS in JDeveloper.
Helpful? Please Comment.
Happy Learning!!
Prerequisites:
1. Create folder ANT
2. Inside create a folder deploy
3. Set up your ANT_HOME environment variable
4. Execute command ant, to check if ant is setup correctly
Steps:
Goto ANT folder
1. Create file build.properties like below:
mds.repository=E:\JDeveloper\soamds
oracle.home=E:\Oracle\Middleware\Oracle_Home
deploy.serverURL=http://localhost:7004
deploy.user=weblogic
deploy.password=welcome1
Update values as per your machine/server.
2. Create build.xml like below:
<?xml version="1.0" encoding="UTF-8"?>
<!--
Deployment Script for MDS
Author : Nadim Warsi
-->
<project name="deployMDS" default="deployMDS">
<property file="build.properties"/>
<target name="deployMDS">
<echo>Deploy MDS</echo>
<echo>Remove and create local MDS temp folder</echo>
<delete dir="deploy"/>
<mkdir dir="deploy"/>
<zip destfile="deploy/mds.jar" compress="false">
<fileset dir="${mds.repository}/apps"/>
</zip>
<ant antfile="${oracle.home}/soa/bin/ant-sca-deploy.xml" inheritall="false" target="deploy">
<property name="wl_home" value="${oracle.home}/wlserver"/>
<property name="oracle.home" value="${oracle.home}/soa"/>
<property name="serverURL" value="${deploy.serverURL}"/>
<property name="user" value="${deploy.user}"/>
<property name="password" value="${deploy.password}"/>
<property name="overwrite" value="true"/>
<property name="forceDefault" value="true"/>
<property name="sarLocation" value="deploy/mds.jar"/>
<property name="failOnError" value="true"/>
</ant>
<echo>MDS deployment completed</echo>
</target>
</project>
3. Save all
4. Execute command: ant
5. Check your MDS in JDeveloper.
Helpful? Please Comment.
Happy Learning!!
No comments:
Post a Comment