Step 1 : Set ANT bin and classpath in the environment variables.
Step 2 : Set java bin and classpath in the environment variables.
Step 3 : Navigate to jdveloper path : Oracle\Middleware\jdeveloper\bin
Step 4 : Run the below commands for compile, package, deploy and undeploy soa components.
ant –f <build-script> -D<parameter1>=<value1> -D<parameter2>=<value2> -D<parameterN>=<valueN>
scac.input: Name and location of the composite.xml file to validate/compile
scac.output: File with results of compile
scac.error: File with error messages, if any
COMPILE
ant -f ant-sca-compile.xml -Dscac.input=%PROJ_DIR%\composite.xml
ant -f ant-sca-compile.xml -DcompositeName=CompositeNAME -DcompositeDir=%PROJ_DIR%\CompositeNAME_FOLDER -Drevision=1.0
PACKAGE
compositeName: Name of the composite
compositeDir: Directory of the project to be packaged
revision: Revision/version of the composite.
ant -f ant-sca-package.xml -DcompositeName=CompositeNAME -DcompositeDir=CompositeNAME_FOLDER -Drevision=1.0
DEPLOY
serverURL: Server on which to deploy the SAR file in the format ex: http://target-server:8001
sarLocation:Path to either a single SAR file or a ZIP file containing multiple SAR files
overwrite: Replace an existing composite with the same name and revision/version (values are true or false, the default value).
user: Username on SOA server, usually weblogic
password: Credentials of the user on the SOA server
forceDefault: Indicates if this revision is to be the default revision (values are true, the default, or false).
configPlan: Configuration plan to be applied to this deployment.
ant -f ant-sca-deploy.xml -DserverURL=http://localhost:8001 -DsarLocation=%PROJ_DIR%\deploy\sca_Calculator_rev1.2.jar -Duser=weblogic -Dpassword=welcome1 -dconfigPlan=<*_cfgplan.xml>
ant -f ant-sca-deploy.xml -DserverURL=http://HOST:8001 -DsarLocation=C:\sca_Calculator_rev1.2.jar -Duser=weblogic -Dpassword=welcome1 -DforceDefault=true -Doverwrite=true
UNDEPLOY
Undeploy to remove a deployed composite. This command has the following parameters:
serverURL
compositeName
revision
user
password
ant -f ant-sca-deploy.xml undeploy -Dundeploy=true -DserverURL=http://HOST:8001 -DcompositeName=POC_RAV_testDB3 -Drevision=1.0 -Duser=weblogic -Dpassword=welcome1
Step 2 : Set java bin and classpath in the environment variables.
Step 3 : Navigate to jdveloper path : Oracle\Middleware\jdeveloper\bin
Step 4 : Run the below commands for compile, package, deploy and undeploy soa components.
ant –f <build-script> -D<parameter1>=<value1> -D<parameter2>=<value2> -D<parameterN>=<valueN>
scac.input: Name and location of the composite.xml file to validate/compile
scac.output: File with results of compile
scac.error: File with error messages, if any
COMPILE
ant -f ant-sca-compile.xml -Dscac.input=%PROJ_DIR%\composite.xml
ant -f ant-sca-compile.xml -DcompositeName=CompositeNAME -DcompositeDir=%PROJ_DIR%\CompositeNAME_FOLDER -Drevision=1.0
PACKAGE
compositeName: Name of the composite
compositeDir: Directory of the project to be packaged
revision: Revision/version of the composite.
ant -f ant-sca-package.xml -DcompositeName=CompositeNAME -DcompositeDir=CompositeNAME_FOLDER -Drevision=1.0
DEPLOY
serverURL: Server on which to deploy the SAR file in the format ex: http://target-server:8001
sarLocation:Path to either a single SAR file or a ZIP file containing multiple SAR files
overwrite: Replace an existing composite with the same name and revision/version (values are true or false, the default value).
user: Username on SOA server, usually weblogic
password: Credentials of the user on the SOA server
forceDefault: Indicates if this revision is to be the default revision (values are true, the default, or false).
configPlan: Configuration plan to be applied to this deployment.
ant -f ant-sca-deploy.xml -DserverURL=http://localhost:8001 -DsarLocation=%PROJ_DIR%\deploy\sca_Calculator_rev1.2.jar -Duser=weblogic -Dpassword=welcome1 -dconfigPlan=<*_cfgplan.xml>
ant -f ant-sca-deploy.xml -DserverURL=http://HOST:8001 -DsarLocation=C:\sca_Calculator_rev1.2.jar -Duser=weblogic -Dpassword=welcome1 -DforceDefault=true -Doverwrite=true
UNDEPLOY
Undeploy to remove a deployed composite. This command has the following parameters:
serverURL
compositeName
revision
user
password
ant -f ant-sca-deploy.xml undeploy -Dundeploy=true -DserverURL=http://HOST:8001 -DcompositeName=POC_RAV_testDB3 -Drevision=1.0 -Duser=weblogic -Dpassword=welcome1
No comments:
Post a Comment