Java Reference
In-Depth Information
In the build.xml, specify properties for the different directory paths used for
compiling and deploying the EJB 3.0 classes, the client servlet, and the JSPs. Specify a
path element for the different JAR files in the classpath. Specify the target s listed in
the following table:
Target
Description
prepare
Create the build directories.
compile
Compile the EJB 3.0 classes.
compileServlet
Compile the servlet class.
jar
Create a JAR file from the EJB 3.0 classes.
war
Create a WAR file from the servlet class and the JSPs.
assemble-app
Assemble the JAR and WAR files to an EAR file.
deploy
Deploy the EAR file to the WebLogic server autodeploy directory. In
development mode, all the applications in the autodeploy directory
get deployed to WebLogic server.
clean
Delete the JAR, WAR and EAR files if recompilation is required.
The build.xml file is listed below:
<?xml version="1.0" encoding="UTF-8"?>
<!--
WebLogic build file
-->
<project name="EJB3Ajax" default="deploy" basedir="../..">
<property name="src.dir" value="${basedir}/Model/src" />
<property name="weblogic.home" value="C:/Oracle/Middleware/wls" />
<property name="weblogic.server" value="${weblogic.home}/
wlserver_10.3/server" />
<property name="web.module" value="${basedir}/ViewController" />
<property name="build.dir" value="${basedir}/build" />
<property name="build.classes.dir" value="${build.dir}/classes" />
<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.classes.dir}" />
</path>
<property name="build.classpath" refid="classpath" />
<target name="prepare">
Search WWH ::




Custom Search