0% found this document useful (0 votes)
91 views2 pages

Ant Build OSB

This document defines properties and targets for exporting and importing Oracle Service Bus configurations. It sets properties for the locations of middleware homes like WebLogic, OSB, and Eclipse. It defines targets to export configurations from an OSB domain or Eclipse workspace using WLST scripts or the Eclipse launcher, and to import exported configurations back into an OSB domain. Path elements are defined for the OSB classpath used by the import and export scripts.

Uploaded by

shadow_scribd
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
91 views2 pages

Ant Build OSB

This document defines properties and targets for exporting and importing Oracle Service Bus configurations. It sets properties for the locations of middleware homes like WebLogic, OSB, and Eclipse. It defines targets to export configurations from an OSB domain or Eclipse workspace using WLST scripts or the Eclipse launcher, and to import exported configurations back into an OSB domain. Path elements are defined for the OSB classpath used by the import and export scripts.

Uploaded by

shadow_scribd
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

<?xml version="1.0" encoding="windows-1252" ?> <project name="ConfigExport"> <property environment="env" /> <property file="./build.properties"/> <property name="wl.home" value="C:/Oracle/Middleware/wlserver_10.

3" /> <property name="bea.home" value="C:/Oracle/Middleware" /> <property <property <property <property name="eclipse.home" value="${fmw.home}/OEPE"/> name="weblogic.home" value="${fmw.home}/wlserver_10.3"/> name="metadata.dir" value="${workspace.dir}/.metadata"/> name="osb.home" value="${fmw.home}/Oracle_OSB1"/>

<property name="domain.export.script" value="C:\ExportImport\export.py" /> <property name="domain.import.script" value="C:\ExportImport\import.py" /> <path id="osb.class.path"> <pathelement path="${bea.home}/wlserver_10.3/server/lib/weblogic.jar" /> <pathelement path="${bea.home}/Oracle_OSB1/lib/sb-kernel-api.jar"/> <pathelement path="${bea.home}/Oracle_OSB1/lib/sb-kernel-impl.jar"/> <pathelement path="${bea.home}/Oracle_OSB1/lib/sb-kernel-wls.jar"/> <!--<pathelement path="${bea.home}/Oracle_OSB1/modules/com.bea.common .configfwk_1.3.0.0.jar"/>--> <pathelement path="${bea.home}/Oracle_OSB1/modules/com.bea.common.config fwk_1.5.0.0.jar"/> </path> <target name="exportFromOSB"> <wlst fileName="${domain.export.script}" debug="true" failOnError="false " arguments="${wls.username} ${wls.password} ${wls.server} ${export. project} ${export.jar} ${export.customFile}"> <script> adminUser=sys.argv[1] adminPassword=sys.argv[2] adminUrl=sys.argv[3] exportJar = sys.argv[5] customFile = sys.argv[6] passphrase = "osb" project = sys.argv[4] connect(adminUser,adminPassword,adminUrl) domainRuntime() </script> </wlst> </target>

<target name="importToOSB"> <wlst fileName="${domain.import.script}" debug="true" failOnError="false " arguments="${wls.username} ${wls.password} ${wls.server} ${import. project} ${import.jar} ${import.customFile}"> <script> adminUser=sys.argv[1] adminPassword=sys.argv[2] adminUrl=sys.argv[3]

project=sys.argv[4] importJar=sys.argv[5] customFile=sys.argv[6] connect(adminUser,adminPassword,adminUrl) domainRuntime() </script> </wlst> </target>

<target name="importOSBApplication"> <echo message="import script: ${domain.import.script}"/> <java classname="weblogic.WLST" fork="true"> <arg line="${domain.import.script} --Username=${wls.username} --P assword=${wls.password} --adminUrl=t3://${listen.address}:${listen.port} --impor tJar=${import.jar} "/> <classpath refid="osb.class.path"/> </java> </target>

<target name="exportFromWorkspace"> <!-<delete failonerror="false" includeemptydirs="true" dir="${metadata.dir}"/>--> <java dir="${eclipse.home}" jar="${eclipse.home}/plugins/launcher.jar" fork="true" failonerror="true" maxmemory="768m"> <jvmarg line="-XX:MaxPermSize=256m"/> <arg line="-data ${workspace.dir}"/> <arg line="-application com.bea.alsb.core.ConfigExport"/> <arg line="-configProject ${config.project}"/> <arg line="-configJar ${config.jar}"/> <arg line="-configSubProjects ${config.subprojects}"/> <arg line="-includeDependencies ${config.includeDependencies}"/> <sysproperty key="weblogic.home" value="${weblogic.home}"/> <sysproperty key="osb.home" value="${osb.home}"/> <sysproperty key="osgi.bundlefile.limit" value="500"/> <sysproperty key="harvester.home" value="${osb.home}/harvester"/> <sysproperty key="osgi.nl" value="en_US"/> <sysproperty key="sun.lang.ClassLoader.allowArraySyntax" value="true"/> </java> </target> </project>

You might also like