Include jdbc-pool into tomcat release.
authorfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 7 Jul 2011 21:40:05 +0000 (21:40 +0000)
committerfhanik <fhanik@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 7 Jul 2011 21:40:05 +0000 (21:40 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1144061 13f79535-47bb-0310-9956-ffa450edef68

build.xml
modules/jdbc-pool/build.xml
res/maven/mvn-pub.xml
res/maven/tomcat-jdbc.pom [new file with mode: 0644]
webapps/docs/project.xml

index a77915d..7537c28 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -69,6 +69,8 @@
   <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"
@@ -1517,7 +1542,6 @@ Apache Tomcat ${version} native binaries for Win64 AMD64/EMT64 platform.
       </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"
@@ -1538,6 +1562,11 @@ Apache Tomcat ${version} native binaries for Win64 AMD64/EMT64 platform.
       <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>
 
@@ -1605,7 +1634,18 @@ Apache Tomcat ${version} native binaries for Win64 AMD64/EMT64 platform.
         <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"
@@ -2089,7 +2129,8 @@ Apache Tomcat ${version} native binaries for Win64 AMD64/EMT64 platform.
 
     <!-- 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 ========================== -->
index 6cd65f2..cc42392 100644 (file)
 
   </target>
 
-  <target name="simplebuild" depends="build">
-  </target>
-
+  <target name="simplebuild" depends="build"/>
+  <target name="clean-and-build" depends="clean,build"/>
+  
   <target name="onetest" depends="build,build-test">
     
     <echo>Testing:${test}</echo>
index d255306..c12c40f 100644 (file)
     <doMavenDeploy artifactId="tomcat-tribes"
                   jarFileName="catalina-tribes.jar"
                srcJarFileName="catalina-tribes-src.jar"/>
+    
+    <doMavenDeploy artifactId="tomcat-jdbc"
+                  jarFileName="tomcat-jdbc.jar"
+               srcJarFileName="tomcat-jdbc-src.jar"/>
+
 
     <doMavenDeploy artifactId="tomcat-el-api"
                   jarFileName="el-api.jar"
diff --git a/res/maven/tomcat-jdbc.pom b/res/maven/tomcat-jdbc.pom
new file mode 100644 (file)
index 0000000..89e274b
--- /dev/null
@@ -0,0 +1,32 @@
+<?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
index 42ad12b..cb2f171 100644 (file)
@@ -70,6 +70,8 @@
         <item name="29) Windows Service"    href="windows-service-howto.html"/>
         <item name="30) Windows Authentication"   
               href="windows-auth-howto.html"/>
+        <item name="31) Tomcat's JDBC Pool"   
+              href="jdbc-pool.html"/>
     </menu>
 
     <menu name="Reference">