NonStop Servlets for JavaServer Pages (NSJSP) 7.0 System Administrator's Guide

Client Deployer in NSJSP 7.0
NonStop Servlets for JavaServer Pages (NSJSP) 7.0 System Administrator’s Guide674372-005
C-3
Configuring NSJSP-specific attributes for Client
Deployer
will be deployed under the context path /first and a filemap entry must be
made for the application /first.
The Client Deployer does not change the filemaps.config file. If
appendContext is set to false, the application must have an equivalent entry in
the filemaps.config file, for it to be accessible by you.
Note. For more information on Client Deployer, refer http://tomcat.apache.org/tomcat-7.0-
doc/deployer-howto.html.
Example C-1. Sample Ant Script for the Client Deployer
<project name="Deployer" default="compile" basedir=".">
<property file="deployer.properties" />
<!-- Configure the directory into which the web application is built -->
<property name="build" value="${basedir}/build" />
<!-- Configure the folder and context path for this application -->
<property name="webapp" value="myapp" />
<property name="path" value="/myapp" />
<!-- Configure properties to access the Manager application -->
<property name="url" value="http://localhost:8080/manager" />
<property name="username" value="tomcat" />
<property name="password" value="tomcat" />
<property name="webapp.path" value="${build}/webapp${path}" />
<path id="deployer.classpath">
<fileset dir="${basedir}/lib">
<include name="*.jar" />
</fileset>
</path>
<taskdef resource="com/tandem/servlet/catalina/ant/catalina.tasks"
classpathref="deployer.classpath" />
<!-- Executable Targets -->
<target name="clean" description="Removes build directory">
<delete dir="${build}" />
</target>
<target name="compile" description="Compile web application" depends="clean">
<copy todir="${webapp.path}">
<fileset dir="${webapp}" />
</copy>
<jasper package="admin" validateXml="false" uriroot="${webapp.path}"
webXmlFragment="${webapp.path}/WEB-INF/generated_web.xml"
addWebXmlMappings="true" outputDir="${webapp.path}/WEB-INF/classes" />