<property name="test.classes" value="${tomcat.output}/testclasses"/>
<property name="test.temp" value="${tomcat.output}/test-tmp"/>
<property name="test.apr.loc" value="${tomcat.build}/bin/native"/>
+ <!-- base directory for jdbc-pool -->
+ <property name="tomcat.jdbc.dir" value="${basedir}/modules/jdbc-pool"/>
<!-- Servlet 3.0 spec requires 1.6+ -->
<property name="compile.source" value="1.6"/>
<property name="tomcat-embed-juli-sources.jar" value="${tomcat.embed.sources}/tomcat-embed-logging-juli-src.jar"/>
<property name="tomcat-embed-dbcp-sources.jar" value="${tomcat.embed.sources}/tomcat-dbcp-src.jar"/>
- <!-- Extras JARs & source JRAs -->
+ <!-- Extras JARs & source JARs -->
<property name="tomcat-juli-extras.jar" value="${tomcat.extras}/tomcat-juli.jar"/>
<property name="tomcat-juli-adapters.jar" value="${tomcat.extras}/tomcat-juli-adapters.jar"/>
<property name="catalina-ws.jar" value="${tomcat.extras}/catalina-ws.jar"/>
<property name="catalina-jmx-remote-src.jar" value="${tomcat.extras.sources}/catalina-jmx-remote-src.jar"/>
<property name="tomcat-embed-log4j-src.jar" value="${tomcat.embed.sources}/tomcat-embed-logging-log4j-src.jar"/>
+ <!-- jdbc-pool JARs & source JARs -->
+ <property name="tomcat-jdbc.jar" value="${tomcat.jdbc.dir}/output/tomcat-jdbc.jar"/>
+ <property name="tomcat-jdbc-src.jar" value="${tomcat.jdbc.dir}/output/tomcat-jdbc-src.jar"/>
+
+
<!-- Tests To Run -->
<property name="test.name" value="**/Test*.java"/>
<property name="test.formatter" value="-Dorg.apache.juli.formatter=java.util.logging.SimpleFormatter"/>
</copy>
</target>
+
+
<target name="build-manifests" unless="manifests.uptodate"
depends="build-prepare">
<mkdir dir="${tomcat.build}/webapps/docs/funcspecs" />
<!-- XSL processing -->
+ <copy tofile="webapps/docs/jdbc-pool.xml" file="${tomcat.jdbc.dir}/doc/jdbc-pool.xml" overwrite="true">
+ <!-- jdbc-pool documentation -->
+ <filterset>
+ <filter token="TOMCAT_PROJECT_DEST" value="project.xml"/>
+ </filterset>
+ </copy>
<xslt basedir="webapps/docs"
destdir="${tomcat.build}/webapps/docs"
extension=".html"
<param name="build-date" expression="${today}"/>
<param name="year" expression="${year}"/>
</xslt>
+ <!-- remove jdbc-pool documentation -->
+ <delete file="webapps/docs/jdbc-pool.xml"/>
<xslt basedir="webapps/docs/appdev"
destdir="${tomcat.build}/webapps/docs/appdev"
extension=".html"
failonerror="false"/>
<copy file="${jdt.jar}" todir="${tomcat.build}/lib" />
- </target>
+ <!-- build the jdbc-pool jar and source jar-->
+ <echo message="Building Tomcat JDBC pool libraries"/>
+ <ant antfile="${tomcat.jdbc.dir}/build.xml" dir="${tomcat.jdbc.dir}" inheritall="false" target="clean-and-build">
+ <property name="tomcat.juli.jar" value="${tomcat-juli.jar}"></property>
+ <property name="skip.download" value="set"/>
+ </ant>
+ <copy file="${tomcat-jdbc.jar}" todir="${tomcat.build}/lib" overwrite="true"/>
+ </target>
+
<target name="examples-sources" description="Create examples sources"
unless="examples.sources.skip" >
<taskdef name="txt2html"
</classpath>
</javadoc>
<javadoc packagenames="org.apache.*"
- sourcepath="${tomcat.dist}/src/java"
destdir="${tomcat.dist}/webapps/docs/api"
version="true"
windowtitle="Apache Tomcat ${version} API Documentation"
<link href="http://download.oracle.com/javase/6/docs/api/"/>
<link href="http://commons.apache.org/io/api-release/"/>
<link href="http://download-llnw.oracle.com/javaee/6/api/"/>
+ <sourcepath>
+ <path location="${tomcat.dist}/src/java"/>
+ <!--jdbc-pool src files for javadoc-->
+ <path location="${tomcat.dist}/src/modules/jdbc-pool/src/main/java"/>
+ </sourcepath>
</javadoc>
</target>
<exclude name="build.properties"/>
</fileset>
</copy>
-
+ <!--jdbc-pool sources -->
+ <copy todir="${tomcat.dist}/src">
+ <fileset dir="${basedir}" defaultexcludes="true">
+ <include name="modules/jdbc-pool/LICENSE"/>
+ <include name="modules/jdbc-pool/NOTICE"/>
+ <include name="modules/jdbc-pool/src/**"/>
+ <include name="modules/jdbc-pool/build.*"/>
+ <include name="modules/jdbc-pool/doc/**"/>
+ <include name="modules/jdbc-pool/resources/**"/>
+ <include name="modules/jdbc-pool/pom.xml"/>
+ </fileset>
+ </copy>
</target>
<target name="installer" description="Create Windows installer"
<!-- Repackaged DBCP -->
<copy file="${tomcat-dbcp-src.jar}" todir="${tomcat.src.jars}" />
-
+ <!-- jdbc-pool JAR File -->
+ <copy file="${tomcat-jdbc-src.jar}" todir="${tomcat.src.jars}" />
</target>
<!-- ========================= Cleaning Targets ========================== -->
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+ Licensed to the Apache Software Foundation (ASF) under one or more\r
+ contributor license agreements. See the NOTICE file distributed with\r
+ this work for additional information regarding copyright ownership.\r
+ The ASF licenses this file to You under the Apache License, Version 2.0\r
+ (the "License"); you may not use this file except in compliance with\r
+ the License. You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+ Unless required by applicable law or agreed to in writing, software\r
+ distributed under the License is distributed on an "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ See the License for the specific language governing permissions and\r
+ limitations under the License.\r
+-->\r
+<project>\r
+ <modelVersion>4.0.0</modelVersion>\r
+ <groupId>org.apache.tomcat</groupId>\r
+ <artifactId>tomcat-jdbc</artifactId>\r
+ <version>@MAVEN.DEPLOY.VERSION@</version>\r
+ <description>Tomcat JDBC Pool Package</description>\r
+ <dependencies>\r
+ <dependency>\r
+ <groupId>org.apache.tomcat</groupId>\r
+ <artifactId>tomcat-jdbc</artifactId>\r
+ <version>@MAVEN.DEPLOY.VERSION@</version>\r
+ <scope>compile</scope>\r
+ </dependency>\r
+ </dependencies>\r
+</project> \r