<!-- Project Name -->
<property name="project" value="apache-tomcat" />
-
+
<!-- Version numbers -->
<property name="version.major" value="7" />
<property name="version.minor" value="0" />
<!-- Version info filter set -->
<tstamp>
- <format property="year" pattern="yyyy" locale="en"/>
+ <format property="year" pattern="yyyy" locale="en"/>
<format property="today" pattern="MMM d yyyy" locale="en"/>
<format property="tstamp" pattern="hh:mm:ss"/>
</tstamp>
<!-- Pattern sets for extras JARs -->
<patternset id="files.tomcat-extras-ws">
- <include name="org/apache/naming/factory/webservices/**" />
+ <include name="org/apache/naming/factory/webservices/**" />
</patternset>
<patternset id="files.tomcat-extras-jmxremote">
<target name="build-prepare">
- <!-- Required so we can compile -->
+ <!-- Required so we can compile -->
<mkdir dir="${tomcat.classes}"/>
<!-- Ensure these directories are removed every time we re-build -->
<delete dir="${tomcat.build}/temp" />
<delete dir="${tomcat.build}/work" />
- <!-- Minimum dirs needed for a working Tomcat instance -->
+ <!-- Minimum dirs needed for a working Tomcat instance -->
<mkdir dir="${tomcat.build}"/>
<mkdir dir="${tomcat.build}/bin"/>
<mkdir dir="${tomcat.build}/conf"/>
<include name="*.notice" />
</srcfiles>
</uptodate>
-
+
</target>
<target name="validate" depends="download-validate" if="${execute.validate}">
<taskdef resource="checkstyletask.properties"
- classpath="${checkstyle.jar}" />
- <checkstyle config="checkstyle.xml">
- <fileset dir="java">
- <include name="**/*.java" />
- <exclude name="org/apache/tomcat/util/bcel/**" />
- </fileset>
- <fileset dir="test">
- <include name="**/*.java" />
- </fileset>
- <fileset dir="webapps">
- <include name="**/*.java" />
+ classpath="${checkstyle.jar}" />
+ <checkstyle config="checkstyle.xml">
+ <fileset dir="." >
+ <patternset refid="text.files" />
+ <exclude name=".*/**"/>
+ <exclude name="output/**"/>
+ <exclude name="modules/**"/>
+ <exclude name="**/*.mdl"/>
</fileset>
- </checkstyle>
+ </checkstyle>
</target>
<target name="compile" depends="build-prepare,download-compile,validate">
classpath="${tomcat.classes}"
excludes="**/CVS/**,**/.svn/**"
encoding="ISO-8859-1"
- includeantruntime="false">
+ includeantruntime="false">
</javac>
<javac srcdir="webapps/examples/jsp/plugin/applet"
classpath="$tomcat.lcasses}"
excludes="**/CVS/**,**/.svn/**"
encoding="ISO-8859-1"
- includeantruntime="false">
+ includeantruntime="false">
</javac>
<!-- Add sources for examples -->
</target>
<target name="embed-sources"
- description="Create source jars for embedded jars"
+ description="Create source jars for embedded jars"
depends="build-manifests" >
<mkdir dir="${tomcat.embed.sources}" />
</target>
<target name="embed-release"
- description="Creates the experimental embedded release"
- depends="embed,embed-sources,embed-extras" />
+ description="Creates the experimental embedded release"
+ depends="embed,embed-sources,embed-extras" />
<target name="test-compile" depends="compile,download-test-compile" >
<mkdir dir="${test.classes}"/>
source="${compile.source}"
optimize="${compile.optimize}"
encoding="ISO-8859-1"
- includeantruntime="false">
+ includeantruntime="false">
<classpath refid="tomcat.test.classpath" />
<include name="org/apache/**" />
<include name="javax/servlet/**" />
<target name="test-apr" description="Runs the JUnit test cases for APR"
depends="test-compile,deploy,test-apr-exists"
- if="${apr.exists}">
+ if="${apr.exists}">
<runtests protocol="org.apache.coyote.http11.Http11AprProtocol"
extension=".APR.txt" />
</target>
<batchtest todir="${tomcat.build}/logs"
unless="test.entry"
errorproperty="test.result.error"
- failureproperty="test.result.failure"
+ failureproperty="test.result.failure"
haltonfailure="${test.haltonfailure}">
<fileset dir="test" >
<!-- Include all by default -->
</target>
<target name="extras-commons-logging"
- depends="extras-prepare,compile,build-manifests"
+ depends="extras-prepare,compile,build-manifests"
description="Build JULI for log4j extras package">
<antcall target="downloadfile">
<antcall target="md5sum">
<param name="file" value="${tomcat-juli-adapters.jar}" />
</antcall>
-
+
<!-- Source JARs -->
<jar jarfile="${tomcat-juli-extras-src.jar}"
manifest="${tomcat.manifests}/default.manifest" >
source="${compile.source}"
optimize="${compile.optimize}"
encoding="ISO-8859-1"
- includeantruntime="false">
+ includeantruntime="false">
<classpath refid="tomcat.webservices.classpath" />
<include name="org/apache/naming/factory/webservices/**" />
</javac>
- <jarIt jarfile="${catalina-ws.jar}"
- filesDir="${tomcat.classes}"
- filesId="files.tomcat-extras-ws" />
+ <jarIt jarfile="${catalina-ws.jar}"
+ filesDir="${tomcat.classes}"
+ filesId="files.tomcat-extras-ws" />
<antcall target="md5sum">
<param name="file" value="${catalina-ws.jar}" />
</antcall>
-
+
<jarIt jarfile="${catalina-ws-src.jar}"
filesDir="java"
filesId="files.tomcat-extras-ws" />
</target>
<target name="extras"
- depends="extras-commons-logging,extras-webservices,extras-jmx-remote"
+ depends="extras-commons-logging,extras-webservices,extras-jmx-remote"
description="Build all extras packages">
</target>
<zipfileset file="${tomcat.manifests}/default.license"
fullpath="META-INF/LICENSE" />
</jar>
-
+
<jar jarfile="${tomcat-embed-log4j-src.jar}"
manifest="${tomcat.manifests}/default.manifest" >
<fileset dir="${tomcat.extras}/logging/commons-logging-${commons-logging-version}-src/src/java">
</target>
<target name="dist-deployer" depends="dist-prepare,deploy"
- description="Create the Tomcat deployer binary">
+ description="Create the Tomcat deployer binary">
<!-- Servlet and JSP -->
<copy todir="${tomcat.deployer}/lib">
</target>
<target name="release"
- depends="clean,dist-deployer,installer,package-zip,package-winzip,package-tgz,package-deployer-zip,package-deployer-tgz,javadoc,package-docs-tgz,package-src-zip,package-src-tgz,package-src-jar"
+ depends="clean,dist-deployer,installer,package-zip,package-winzip,package-tgz,package-deployer-zip,package-deployer-tgz,javadoc,package-docs-tgz,package-src-zip,package-src-tgz,package-src-jar"
description="Create a Tomcat 7 packaged distribution">
<copy file="KEYS"
filesId="files.jasper-el" />
<!-- Repackaged DBCP -->
- <copy file="${tomcat-dbcp-src.jar}" todir="${tomcat.src.jars}" />
+ <copy file="${tomcat-dbcp-src.jar}" todir="${tomcat.src.jars}" />
</target>
<delete dir="${tomcat.output}" />
</target>
-
+
<!-- ================ Download and dependency building =================== -->
<target name="download-validate"
description="Download components necessary to validate source"
- if="${execute.validate}">
+ if="${execute.validate}">
<antcall target="downloadzip">
<param name="sourcefile" value="${checkstyle.loc}"/>
</target>
<target name="download-compile"
- description="Download (and build) components necessary to compile" >
+ description="Download (and build) components necessary to compile" >
<antcall target="downloadfile">
<param name="sourcefile" value="${tomcat-native.loc}"/>
sourcepath="${tomcat-dbcp.home}/src/java"
srcdir="${tomcat-dbcp.home}/src/java"
encoding="ISO-8859-1"
- includeantruntime="false">
+ includeantruntime="false">
<include name="**" />
</javac>
- <jarIt jarfile="${tomcat-dbcp.jar}"
- filesDir="${tomcat-dbcp.home}/classes"
- filesId="files.tomcat-dbcp" />
+ <jarIt jarfile="${tomcat-dbcp.jar}"
+ filesDir="${tomcat-dbcp.home}/classes"
+ filesId="files.tomcat-dbcp" />
<jarIt jarfile="${tomcat-dbcp-src.jar}"
filesDir="${tomcat-dbcp.home}/src/java"
filesId="files.tomcat-dbcp" />
<macrodef name="jarIt" description="utility macro for standard JAR packaging">
<attribute name="jarfile"
- description="the name of the JAR file to create"/>
+ description="the name of the JAR file to create"/>
<attribute name="filesDir"
- description="the directory from which to obtain the files "/>
+ description="the directory from which to obtain the files "/>
<attribute name="filesId"
- description="the patternset id of the files to use"/>
+ description="the patternset id of the files to use"/>
<attribute name="manifest" description="the manifest file use"
default="${tomcat.manifests}/default.manifest" />
<attribute name="notice" description="the LICENSE file to use"