summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Thomson <wltjr@gentoo.org>2007-01-05 03:27:58 +0000
committerWilliam Thomson <wltjr@gentoo.org>2007-01-05 03:27:58 +0000
commitbf38ee6ba8554258cd62a1f40cdfa7725237ee69 (patch)
tree69406e0e7ad1261758f06d9c0333647a39665214 /dev-java/tomcat-servlet-api/files
parentAdded java5 use desc for stomcat-servlet-api, and updated desc for tomcat's u... (diff)
downloadgentoo-2-bf38ee6ba8554258cd62a1f40cdfa7725237ee69.tar.gz
gentoo-2-bf38ee6ba8554258cd62a1f40cdfa7725237ee69.tar.bz2
gentoo-2-bf38ee6ba8554258cd62a1f40cdfa7725237ee69.zip
Initial new ebuilds for Tomcat's servlet api, 2.4/2.5. 5.5.20/2.4 is brought over from previous servletapi-2.4 package. 6.0.7_alpha still needs work. Resulting jars are not the correct size :(
(Portage version: 2.1.2_rc4-r3)
Diffstat (limited to 'dev-java/tomcat-servlet-api/files')
-rw-r--r--dev-java/tomcat-servlet-api/files/2.5-build.xml82
-rw-r--r--dev-java/tomcat-servlet-api/files/digest-tomcat-servlet-api-5.5.203
-rw-r--r--dev-java/tomcat-servlet-api/files/digest-tomcat-servlet-api-6.0.7_alpha3
3 files changed, 88 insertions, 0 deletions
diff --git a/dev-java/tomcat-servlet-api/files/2.5-build.xml b/dev-java/tomcat-servlet-api/files/2.5-build.xml
new file mode 100644
index 000000000000..97ade1678713
--- /dev/null
+++ b/dev-java/tomcat-servlet-api/files/2.5-build.xml
@@ -0,0 +1,82 @@
+<project name="Tomcat Serlvet API 2.5/JSP API 2.1" default="deploy" basedir=".">
+
+ <property name="compile.source" value="1.5"/>
+
+ <property name="tomcat.build" value="${basedir}/output/build"/>
+ <property name="tomcat.classes" value="${basedir}/output/classes"/>
+ <property name="servlet-api.jar" value="${tomcat.build}/lib/servlet-api.jar"/>
+ <property name="jsp-api.jar" value="${tomcat.build}/lib/jsp-api.jar"/>
+
+ <!-- Just build Tomcat -->
+ <target name="build-prepare">
+
+ <available classname="junit.framework.TestCase" property="junit.present" />
+
+ <mkdir dir="${tomcat.build}"/>
+ <mkdir dir="${tomcat.build}/lib"/>
+ <mkdir dir="${tomcat.classes}"/>
+
+ </target>
+
+ <target name="compile">
+
+ <!-- Compile internal server components -->
+ <javac srcdir="java" destdir="${tomcat.classes}"
+ debug="${compile.debug}"
+ deprecation="${compile.deprecation}"
+ source="${compile.source}"
+ optimize="${compile.optimize}"
+ excludes="**/CVS/**,**/.svn/**">
+ <exclude name="java/javax/annotation/**" />
+ <exclude name="java/javax/ejb/**" />
+ <exclude name="java/javax/el/**" />
+ <exclude name="java/javax/mail/**" />
+ <exclude name="java/javax/persistence/**" />
+ <exclude name="java/javax/xml/**" />
+ <exclude name="org/**" />
+ </javac>
+ <tstamp>
+ <format property="TODAY" pattern="MMM d yyyy" locale="en"/>
+ <format property="TSTAMP" pattern="hh:mm:ss"/>
+ </tstamp>
+ <!-- Copy static resource files -->
+ <filter token="VERSION" value="${version}"/>
+ <filter token="VERSION_NUMBER" value="${version.number}"/>
+ <filter token="VERSION_BUILT" value="${TODAY} ${TSTAMP}"/>
+ <copy todir="${tomcat.classes}" filtering="true">
+ <fileset dir="java">
+ <include name="**/*.properties"/>
+ <include name="**/*.dtd"/>
+ <include name="**/*.tasks"/>
+ <include name="**/*.xsd"/>
+ <include name="**/*.xml"/>
+ </fileset>
+ </copy>
+
+ </target>
+
+ <target name="jar" depends="build-prepare,compile">
+ <!-- Servlet 2.5 Implementation JAR File -->
+ <jar jarfile="${servlet-api.jar}">
+ <fileset dir="${tomcat.classes}">
+ <include name="javax/servlet/*" />
+ <include name="javax/servlet/http/*" />
+ <include name="javax/servlet/resources/*" />
+ <!-- Javadoc and i18n exclusions -->
+ <exclude name="**/package.html" />
+ <exclude name="**/LocalStrings_*" />
+ </fileset>
+ </jar>
+
+ <!-- JSP 2.1 Implementation JAR File -->
+ <jar jarfile="${jsp-api.jar}">
+ <fileset dir="${tomcat.classes}">
+ <include name="javax/servlet/jsp/**" />
+ <!-- Javadoc and i18n exclusions -->
+ <exclude name="**/package.html" />
+ <exclude name="**/LocalStrings_*" />
+ </fileset>
+ </jar>
+ </target>
+
+</project>
diff --git a/dev-java/tomcat-servlet-api/files/digest-tomcat-servlet-api-5.5.20 b/dev-java/tomcat-servlet-api/files/digest-tomcat-servlet-api-5.5.20
new file mode 100644
index 000000000000..25cb711a112c
--- /dev/null
+++ b/dev-java/tomcat-servlet-api/files/digest-tomcat-servlet-api-5.5.20
@@ -0,0 +1,3 @@
+MD5 5775bae8fac16a0e3a2c913c4768bb37 apache-tomcat-5.5.20-src.tar.gz 4796377
+RMD160 587590d2e272d1ede73501b62933f544cd969822 apache-tomcat-5.5.20-src.tar.gz 4796377
+SHA256 19f24717fb3e2db902c33e21650dfa88bbf98428c15b1ed68ecaf7a9150e4a77 apache-tomcat-5.5.20-src.tar.gz 4796377
diff --git a/dev-java/tomcat-servlet-api/files/digest-tomcat-servlet-api-6.0.7_alpha b/dev-java/tomcat-servlet-api/files/digest-tomcat-servlet-api-6.0.7_alpha
new file mode 100644
index 000000000000..1309a094c51c
--- /dev/null
+++ b/dev-java/tomcat-servlet-api/files/digest-tomcat-servlet-api-6.0.7_alpha
@@ -0,0 +1,3 @@
+MD5 e4043356aeb6fd631df17adb1fbdb76d apache-tomcat-6.0.7-src.tar.gz 3210405
+RMD160 830485c5e25926da950e6b2148aa8baae263b351 apache-tomcat-6.0.7-src.tar.gz 3210405
+SHA256 a76be3230db0a3363835916f14afcccce6f18509577c2999f5491c0fb861e4f3 apache-tomcat-6.0.7-src.tar.gz 3210405