-<?xml version="1.0"?>\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 name="Tomcat Trunk" default="conpool" basedir="../..">\r
-\r
-\r
- <!-- ===================== Initialize Property Values =================== -->\r
-\r
- <!-- See "build.properties.sample" in the top level directory for all -->\r
- <!-- property values you must customize for successful building!!! -->\r
- <property file="${user.home}/build.properties"/>\r
- <property file="${basedir}/build.properties"/>\r
-\r
- <property file="${basedir}/build.properties.default"/>\r
-\r
- <!-- Project Properties -->\r
- <property name="name" value="Apache Tomcat" />\r
- <property name="year" value="2007" />\r
- <property name="version.major" value="6" />\r
- <property name="version.minor" value="0" />\r
- <property name="version.build" value="0" />\r
- <property name="version.patch" value="0" />\r
- <property name="version" value="6.0.0-dev" />\r
- <property name="version.number" value="${version.major}.${version.minor}.${version.build}.${version.patch}" />\r
-\r
- <property name="project" value="apache-tomcat" />\r
- <property name="final.name" value="${project}-${version}" />\r
- <property name="final-src.name" value="${project}-${version}-src" />\r
-\r
- <!-- Build Defaults -->\r
- <property name="tomcat.build" value="${basedir}/output/build"/>\r
- <property name="tomcat.classes" value="${basedir}/output/classes"/>\r
- <property name="tomcat.dist" value="${basedir}/output/dist"/>\r
- <property name="tomcat.extras" value="${basedir}/output/extras"/>\r
- <property name="tomcat.deployer" value="${basedir}/output/deployer"/>\r
- <property name="tomcat.release" value="${basedir}/output/release"/>\r
- <property name="test.failonerror" value="true"/>\r
- <property name="test.runner" value="junit.textui.TestRunner"/>\r
-\r
- <!-- Can't be lower - jsp uses templates -->\r
- <property name="compile.source" value="1.5"/>\r
-\r
- <!-- JAR artifacts -->\r
- <property name="bootstrap.jar" value="${tomcat.build}/bin/bootstrap.jar"/>\r
-\r
- <property name="annotations-api.jar" value="${tomcat.build}/lib/annotations-api.jar"/>\r
- <property name="servlet-api.jar" value="${tomcat.build}/lib/servlet-api.jar"/>\r
- <property name="jsp-api.jar" value="${tomcat.build}/lib/jsp-api.jar"/>\r
- <property name="el-api.jar" value="${tomcat.build}/lib/el-api.jar"/>\r
- <property name="catalina.jar" value="${tomcat.build}/lib/catalina.jar"/>\r
- <property name="catalina-ant.jar" value="${tomcat.build}/lib/catalina-ant.jar"/>\r
- <property name="tomcat-coyote.jar" value="${tomcat.build}/lib/tomcat-coyote.jar"/>\r
-\r
- <property name="jasper.jar" value="${tomcat.build}/lib/jasper.jar"/>\r
- <property name="jasper-el.jar" value="${tomcat.build}/lib/jasper-el.jar"/>\r
-\r
- <property name="tomcat-dbcp.home" value="${base.path}/tomcat6-deps/dbcp" />\r
- <property name="jasper-jdt.home" value="${base.path}/tomcat6-deps/jdt" />\r
- <property name="tomcat-dbcp.jar" value="${tomcat-dbcp.home}/tomcat-dbcp.jar"/>\r
- <property name="jasper-jdt.jar" value="${jasper-jdt.home}/jasper-jdt.jar"/>\r
-\r
- <property name="tomcat-juli.jar" value="${tomcat.extras}/tomcat-juli.jar"/>\r
- <property name="tomcat-juli-adapters.jar" value="${tomcat.extras}/tomcat-juli-adapters.jar"/>\r
- <property name="catalina-ws.jar" value="${tomcat.extras}/catalina-ws.jar"/>\r
-\r
- <property name="cometd-api.jar" value="${tomcat.extras}/cometd-api.jar"/>\r
- <property name="tomcat-bayeux.jar" value="${tomcat.extras}/tomcat-bayeux.jar"/>\r
- <property name="cometd.war" value="${tomcat.extras}/cometd.war"/>\r
- <property name="tomcat-bayeux-samples.jar" value="${tomcat.extras}/tomcat-bayeux-samples.jar"/>\r
-\r
- <property name="tomcat-jdbc.jar" value="${tomcat.extras}/tomcat-jdbc.jar"/>\r
-\r
- <property name="catalina-jmx-remote.jar" value="${tomcat.extras}/catalina-jmx-remote.jar"/>\r
- \r
- <!-- Classpath -->\r
- <path id="tomcat.classpath">\r
- <pathelement location="${tomcat.classes}"/>\r
- </path>\r
-\r
- <target name="prepare">\r
- <mkdir dir="${tomcat.extras}"/>\r
- </target>\r
-\r
- <target name="conpool">\r
- <mkdir dir="${tomcat.extras}"/>\r
- <path id="tomcat.jdbc.classpath">\r
- <pathelement path="${tomcat.classpath}"/>\r
- </path>\r
-\r
- <!-- compile org.apache.tomcat.jdbc-->\r
- <javac srcdir="${basedir}/modules/jdbc-pool/java" destdir="${tomcat.classes}"\r
- debug="${compile.debug}"\r
- deprecation="${compile.deprecation}"\r
- source="${compile.source}"\r
- optimize="${compile.optimize}">\r
- <classpath refid="tomcat.jdbc.classpath"/>\r
- <include name="org/apache/tomcat/jdbc/**" />\r
- </javac>\r
- \r
- <!-- connection pool JAR File -->\r
- <jar jarfile="${tomcat-jdbc.jar}">\r
- <fileset dir="${tomcat.classes}">\r
- <include name="org/apache/tomcat/jdbc/**" />\r
- </fileset>\r
- </jar>\r
- <!-- create checksums -->\r
- <checksum file="${tomcat-jdbc.jar}" forceOverwrite="yes" fileext=".md5" />\r
- </target>\r
-\r
- <target name="clean"> \r
- <delete file="${tomcat-jdbc.jar}"/>\r
- <delete file="${tomcat-jdbc.jar}.md5"/>\r
- <delete includeemptydirs="true">\r
- <fileset dir="${tomcat.classes}">\r
- <include name="org/apache/tomcat/jdbc/**"/>\r
- </fileset>\r
- </delete>\r
- </target>\r
- \r
- <!-- Download and dependency building -->\r
- <target name="proxyflags">\r
- <!-- check proxy parameters. -->\r
- <condition property="useproxy">\r
- <equals arg1="${proxy.use}" arg2="on" />\r
- </condition>\r
- </target>\r
-\r
- <target name="setproxy" depends="proxyflags" if="useproxy">\r
- <taskdef name="setproxy"\r
- classname="org.apache.tools.ant.taskdefs.optional.net.SetProxy" />\r
- <setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}"\r
- proxyuser="${proxy.user}" proxypassword="${proxy.password}" />\r
- <echo message="Using ${proxy.host}:${proxy.port} to download ${sourcefile}"/>\r
- </target>\r
-\r
- <target name="testexist">\r
- <echo message="Testing for ${destfile}"/>\r
- <available file="${destfile}" property="exist"/>\r
- </target>\r
-\r
- <target name="downloadfile" unless="exist" depends="setproxy,testexist">\r
- <!-- Download extract the file -->\r
- <mkdir dir="${destdir}" />\r
- <get src="${sourcefile}" dest="${destfile}" />\r
- </target>\r
- \r
- <target name="downloadgz" unless="exist" depends="setproxy,testexist">\r
- <!-- Download and extract the package -->\r
- <get src="${sourcefile}" dest="${base.path}/file.tar.gz" />\r
- <gunzip src="${base.path}/file.tar.gz" dest="${base.path}/file.tar"/>\r
- <untar src="${base.path}/file.tar" dest="${base.path}"/>\r
- <delete file="${base.path}/file.tar"/>\r
- <delete file="${base.path}/file.tar.gz"/>\r
- </target>\r
-\r
-</project>\r
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<project name="Tomcat Trunk" default="build" basedir="../..">
+
+
+ <!-- ===================== Initialize Property Values =================== -->
+
+ <!-- See "build.properties.sample" in the top level directory for all -->
+ <!-- property values you must customize for successful building!!! -->
+ <property file="${user.home}/build.properties"/>
+ <property file="${basedir}/build.properties"/>
+
+ <property file="${basedir}/build.properties.default"/>
+
+ <!-- Project Properties -->
+ <property name="name" value="Apache Tomcat" />
+ <property name="year" value="2007" />
+ <property name="version.major" value="6" />
+ <property name="version.minor" value="0" />
+ <property name="version.build" value="0" />
+ <property name="version.patch" value="0" />
+ <property name="version" value="6.0.0-dev" />
+ <property name="version.number" value="${version.major}.${version.minor}.${version.build}.${version.patch}" />
+
+ <property name="project" value="apache-tomcat" />
+ <property name="final.name" value="${project}-${version}" />
+ <property name="final-src.name" value="${project}-${version}-src" />
+
+ <!-- Build Defaults -->
+ <property name="tomcat.build" value="${basedir}/output/build"/>
+ <property name="tomcat.classes" value="${basedir}/output/classes"/>
+ <property name="tomcat.dist" value="${basedir}/output/dist"/>
+ <property name="tomcat.extras" value="${basedir}/output/extras"/>
+ <property name="tomcat.deployer" value="${basedir}/output/deployer"/>
+ <property name="tomcat.release" value="${basedir}/output/release"/>
+ <property name="test.failonerror" value="true"/>
+ <property name="test.runner" value="junit.textui.TestRunner"/>
+
+ <!-- Can't be lower - jsp uses templates -->
+ <property name="compile.source" value="1.5"/>
+
+ <!-- JAR artifacts -->
+ <property name="bootstrap.jar" value="${tomcat.build}/bin/bootstrap.jar"/>
+
+ <property name="annotations-api.jar" value="${tomcat.build}/lib/annotations-api.jar"/>
+ <property name="servlet-api.jar" value="${tomcat.build}/lib/servlet-api.jar"/>
+ <property name="jsp-api.jar" value="${tomcat.build}/lib/jsp-api.jar"/>
+ <property name="el-api.jar" value="${tomcat.build}/lib/el-api.jar"/>
+ <property name="catalina.jar" value="${tomcat.build}/lib/catalina.jar"/>
+ <property name="catalina-ant.jar" value="${tomcat.build}/lib/catalina-ant.jar"/>
+ <property name="tomcat-coyote.jar" value="${tomcat.build}/lib/tomcat-coyote.jar"/>
+
+ <property name="jasper.jar" value="${tomcat.build}/lib/jasper.jar"/>
+ <property name="jasper-el.jar" value="${tomcat.build}/lib/jasper-el.jar"/>
+
+ <property name="tomcat-dbcp.home" value="${base.path}/tomcat6-deps/dbcp" />
+ <property name="jasper-jdt.home" value="${base.path}/tomcat6-deps/jdt" />
+ <property name="tomcat-dbcp.jar" value="${tomcat-dbcp.home}/tomcat-dbcp.jar"/>
+ <property name="jasper-jdt.jar" value="${jasper-jdt.home}/jasper-jdt.jar"/>
+
+ <property name="tomcat-juli.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="cometd-api.jar" value="${tomcat.extras}/cometd-api.jar"/>
+ <property name="tomcat-bayeux.jar" value="${tomcat.extras}/tomcat-bayeux.jar"/>
+ <property name="cometd.war" value="${tomcat.extras}/cometd.war"/>
+ <property name="tomcat-bayeux-samples.jar" value="${tomcat.extras}/tomcat-bayeux-samples.jar"/>
+
+ <property name="tomcat-jdbc.jar" value="${tomcat.extras}/tomcat-jdbc.jar"/>
+
+ <property name="catalina-jmx-remote.jar" value="${tomcat.extras}/catalina-jmx-remote.jar"/>
+
+ <!-- Classpath -->
+ <path id="tomcat.classpath">
+ <pathelement location="${tomcat.classes}"/>
+ </path>
+
+ <path id="test.classpath">
+ <pathelement location="${tomcat-jdbc.jar}"/>
+ <pathelement location="${tomcat.classes}"/>
+ <fileset dir="${base.path}">
+ <include name="**/tomcat-dbcp.jar"/>
+ <include name="**/junit.jar"/>
+ <include name="**/mysql-connector-java-5.0.7-bin.jar"/>
+ </fileset>
+ </path>
+
+
+ <target name="prepare">
+ <mkdir dir="${tomcat.extras}"/>
+ </target>
+
+ <target name="build">
+ <mkdir dir="${tomcat.extras}"/>
+ <path id="tomcat.jdbc.classpath">
+ <pathelement path="${tomcat.classpath}"/>
+ </path>
+
+ <!-- compile org.apache.tomcat.jdbc-->
+ <javac srcdir="${basedir}/modules/jdbc-pool/java" destdir="${tomcat.classes}"
+ debug="${compile.debug}"
+ deprecation="${compile.deprecation}"
+ source="${compile.source}"
+ optimize="${compile.optimize}">
+ <classpath refid="tomcat.jdbc.classpath"/>
+ <include name="org/apache/tomcat/jdbc/**" />
+ </javac>
+
+ <!-- connection pool JAR File -->
+ <jar jarfile="${tomcat-jdbc.jar}">
+ <fileset dir="${tomcat.classes}">
+ <include name="org/apache/tomcat/jdbc/**" />
+ </fileset>
+ </jar>
+ <!-- create checksums -->
+ <checksum file="${tomcat-jdbc.jar}" forceOverwrite="yes" fileext=".md5" />
+
+
+ </target>
+
+ <target name="clean">
+ <delete file="${tomcat-jdbc.jar}"/>
+ <delete file="${tomcat-jdbc.jar}.md5"/>
+ <delete includeemptydirs="true">
+ <fileset dir="${tomcat.classes}">
+ <include name="org/apache/tomcat/jdbc/**"/>
+ </fileset>
+ </delete>
+ </target>
+
+ <target name="test" depends="clean,build">
+
+ <!-- compile org.apache.tomcat.jdbc-->
+ <javac srcdir="${basedir}/modules/jdbc-pool/test" destdir="${tomcat.classes}"
+ debug="${compile.debug}"
+ deprecation="${compile.deprecation}"
+ source="${compile.source}"
+ optimize="${compile.optimize}">
+ <classpath refid="test.classpath"/>
+ <include name="org/apache/tomcat/jdbc/**" />
+ </javac>
+
+ <java classname="org.junit.runner.JUnitCore" classpathref="test.classpath" fork="false">
+ <arg line="org.apache.tomcat.jdbc.test.CheckOutThreadTest" />
+ </java>
+ </target>
+
+ <!-- Download and dependency building -->
+ <target name="proxyflags">
+ <!-- check proxy parameters. -->
+ <condition property="useproxy">
+ <equals arg1="${proxy.use}" arg2="on" />
+ </condition>
+ </target>
+
+ <target name="setproxy" depends="proxyflags" if="useproxy">
+ <taskdef name="setproxy"
+ classname="org.apache.tools.ant.taskdefs.optional.net.SetProxy" />
+ <setproxy proxyhost="${proxy.host}" proxyport="${proxy.port}"
+ proxyuser="${proxy.user}" proxypassword="${proxy.password}" />
+ <echo message="Using ${proxy.host}:${proxy.port} to download ${sourcefile}"/>
+ </target>
+
+ <target name="testexist">
+ <echo message="Testing for ${destfile}"/>
+ <available file="${destfile}" property="exist"/>
+ </target>
+
+ <target name="downloadfile" unless="exist" depends="setproxy,testexist">
+ <!-- Download extract the file -->
+ <mkdir dir="${destdir}" />
+ <get src="${sourcefile}" dest="${destfile}" />
+ </target>
+
+ <target name="downloadgz" unless="exist" depends="setproxy,testexist">
+ <!-- Download and extract the package -->
+ <get src="${sourcefile}" dest="${base.path}/file.tar.gz" />
+ <gunzip src="${base.path}/file.tar.gz" dest="${base.path}/file.tar"/>
+ <untar src="${base.path}/file.tar" dest="${base.path}"/>
+ <delete file="${base.path}/file.tar"/>
+ <delete file="${base.path}/file.tar.gz"/>
+ </target>
+
+</project>