<j2ee1.4tutorial_install>/j2eetutorial14/examples/common/build.properties file
to the directories you install J2EE 1.4 SDK
and J2EE 1.4
tutorial. An example is shown below. (This is described in
detail in Chapter
About This Tutorial, Section About the Examples section
of the J2EE 1.4
tutorial. If you encounter a build
failure later on, it is very
likely that you did not set these properties or did not set them
correctly.)
<j2ee1.4tutorial_install>/j2eetutorial14/examples/common/admin-password.txt
as
described under Chapter
About This Tutorial, Section About the Examples of
J2EE
1.4
tutorial. Examples are as following:
| <project
name="hello2-example" default="build" basedir="."> <!-- Configure the context path for this application --> <property name="example" value="hello2" /> <!-- Configure properties --> <property file="../../common/build.properties"/> <property file="../common/build.properties"/> &targets; &webtargets; <target name="build" depends="copy" description="Compile app Java files" > <javac srcdir="src" destdir="${build}"> <include name="**/*.java" /> <classpath refid="classpath"/> </javac> </target> <target name="deploy1-war"> <antcall target="admin_command_common"> <param name="admin.command" value="deploy ${j2ee.tutorial.home}/examples/web/${example}/${war.file}" /> </antcall> </target> <target name="undeploy1-war"> <antcall target="admin_command_common"> <param name="admin.command" value="undeploy ${j2ee.tutorial.home}/examples/web/${example}/${war.file}" /> </antcall> </target> </project> |