<!--
General purpose build script for web applications and web services,
- including enhanced support for deploying directly to a Tomcat 5
+ including enhanced support for deploying directly to a Tomcat 6
based server.
This build script assumes that the source code of your web application
Defaults to "build".
catalina.home The directory in which you have installed
- a binary distribution of Tomcat 5. This will
+ a binary distribution of Tomcat 6. This will
be used by the "deploy" target.
dist.home The name of the base directory in which
<property name="web.home" value="${basedir}/web"/>
-<!-- ================== Custom Ant Task Definitions ======================= -->
-
-
-<!--
-
- These properties define custom tasks for the Ant build tool that interact
- with the "/manager" web application installed with Tomcat 5. Before they
- can be successfully utilized, you must perform the following steps:
-
- - Copy the file "server/lib/catalina-ant.jar" from your Tomcat 5
- installation into the "lib" directory of your Ant installation.
-
- - Create a "build.properties" file in your application's top-level
- source directory (or your user login home directory) that defines
- appropriate values for the "manager.password", "manager.url", and
- "manager.username" properties described above.
-
- For more information about the Manager web application, and the functionality
- of these tasks, see <http://localhost:8080/tomcat-docs/manager-howto.html>.
-
--->
-
- <taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask"/>
- <taskdef name="list" classname="org.apache.catalina.ant.ListTask"/>
- <taskdef name="reload" classname="org.apache.catalina.ant.ReloadTask"/>
- <taskdef name="undeploy" classname="org.apache.catalina.ant.UndeployTask"/>
-
-
-<!-- ==================== Compilation Control Options ==================== -->
-
-<!--
-
- These properties control option settings on the Javac compiler when it
- is invoked using the <javac> task.
-
- compile.debug Should compilation include the debug option?
-
- compile.deprecation Should compilation include the deprecation option?
-
- compile.optimize Should compilation include the optimize option?
-
--->
-
- <property name="compile.debug" value="true"/>
- <property name="compile.deprecation" value="false"/>
- <property name="compile.optimize" value="true"/>
-
-
-
<!-- ==================== External Dependencies =========================== -->
* Being copied into the "/WEB-INF/lib" directory during execution
of the "deploy" target.
- Because we will automatically include all of the Java classes that Tomcat 5
+ Because we will automatically include all of the Java classes that Tomcat 6
exposes to web applications, we will not need to explicitly list any of those
dependencies. You only need to worry about external dependencies for JAR
files that you are going to include inside your "/WEB-INF/lib" directory.
-->
<!-- Include all elements that Tomcat exposes to applications -->
- <pathelement location="${catalina.home}/common/classes"/>
- <fileset dir="${catalina.home}/common/endorsed">
- <include name="*.jar"/>
- </fileset>
- <fileset dir="${catalina.home}/common/lib">
+ <fileset dir="${catalina.home}/bin">
<include name="*.jar"/>
</fileset>
- <pathelement location="${catalina.home}/shared/classes"/>
- <fileset dir="${catalina.home}/shared/lib">
+ <pathelement location="${catalina.home}/lib"/>
+ <fileset dir="${catalina.home}/lib">
<include name="*.jar"/>
</fileset>
+<!-- ================== Custom Ant Task Definitions ======================= -->
+
+
+<!--
+
+ These properties define custom tasks for the Ant build tool that interact
+ with the "/manager" web application installed with Tomcat 6. Before they
+ can be successfully utilized, you must perform the following steps:
+
+ - Copy the file "lib/catalina-ant.jar" from your Tomcat 6
+ installation into the "lib" directory of your Ant installation.
+
+ - Create a "build.properties" file in your application's top-level
+ source directory (or your user login home directory) that defines
+ appropriate values for the "manager.password", "manager.url", and
+ "manager.username" properties described above.
+
+ For more information about the Manager web application, and the functionality
+ of these tasks, see <http://localhost:8080/tomcat-docs/manager-howto.html>.
+
+-->
+
+ <taskdef resource="org/apache/catalina/ant/catalina.tasks"
+ classpathref="compile.classpath"/>
+
+
+<!-- ==================== Compilation Control Options ==================== -->
+
+<!--
+
+ These properties control option settings on the Javac compiler when it
+ is invoked using the <javac> task.
+
+ compile.debug Should compilation include the debug option?
+
+ compile.deprecation Should compilation include the deprecation option?
+
+ compile.optimize Should compilation include the optimize option?
+
+-->
+
+ <property name="compile.debug" value="true"/>
+ <property name="compile.deprecation" value="false"/>
+ <property name="compile.optimize" value="true"/>
+
+
+
<!-- ==================== All Target ====================================== -->
<!--
<!--
- The "install" target tells the specified Tomcat 5 installation to dynamically
+ The "install" target tells the specified Tomcat 6 installation to dynamically
install this web application and make it available for execution. It does
*not* cause the existence of this web application to be remembered across
Tomcat restarts; if you restart the server, you will need to re-install all
<!--
- The "list" target asks the specified Tomcat 5 installation to list the
+ The "list" target asks the specified Tomcat 6 installation to list the
currently running web applications, either loaded at startup time or
installed dynamically. It is useful to determine whether or not the
application you are currently developing has been installed.
<!--
- The "reload" signals the specified application Tomcat 5 to shut itself down
+ The "reload" signals the specified application Tomcat 6 to shut itself down
and reload. This can be useful when the web application context is not
reloadable and you have updated classes or property files in the
/WEB-INF/classes directory or when you have added or updated jar files in the
<!--
- The "remove" target tells the specified Tomcat 5 installation to dynamically
+ The "remove" target tells the specified Tomcat 6 installation to dynamically
remove this web application from service.
NOTE: This is the logical opposite of the "install" target.