Java Reference
In-Depth Information
In the build script, specify properties for the various directory paths used in the
script, such as the WebLogic server directory, the build directory, and the WebLogic
Server deploy directory. Specify the classpath of the various JAR files required for
compiling the EJB classes. Specify target s discussed in the following table:
Target
Description
prepare
Creates the build directory.
compile
Compiles the EJB classes.
jar
Creates an EJB JAR file.
war
Creates a WAR file.
assemble-
app
Creates an EAR file.
deploy
Deploys the EAR file to WebLogic Server. The WebLogic Server deploy
directory development mode is ${weblogic.home}/user_projects/domains/
base_domain/autodeploy
clean
Deletes the build directory and the EJB JAR, WAR and EAR files.
The build.xml script is listed next:
<?xml version="1.0" encoding="UTF-8"?>
<!--
WebLogic build file
-->
<project name="EJB3EntityBean" default="deploy" basedir=".">
<property environment="env" />
<property name="src.dir" value="${basedir}/src" />
<property name="web.module" value="${basedir}/webModule" />
<property name="weblogic.home" value="C:/Oracle/Middleware/wls" />
<property name="weblogic.server"
value="${weblogic.home}/wlserver_10.3/server" />
<property name="build.dir" value="${basedir}/build" />
<property name="deploy.dir"
value="${weblogic.home}/user_projects/domains/base_domain/
autodeploy" />
<path id="classpath">
<fileset dir="${weblogic.home}/modules">
<include name="*.jar" />
</fileset>
<fileset dir="${weblogic.server}/lib">
<include name="*.jar" />
</fileset>
<pathelement location="${build.dir}" />
Search WWH ::




Custom Search