You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by re...@apache.org on 2021/09/01 11:01:31 UTC
[tomcat] 10/13: Add Derby for the testsuite
This is an automated email from the ASF dual-hosted git repository.
remm pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 86177f083963cdd89b94ab0e396ec6434e918e5d
Author: remm <re...@apache.org>
AuthorDate: Tue Aug 31 21:32:10 2021 +0200
Add Derby for the testsuite
It can be used for JDBC testing. Also for DataSource with our pools.
---
build.properties.default | 24 ++++++++++++++++++++++++
build.xml | 30 ++++++++++++++++++++++++++++++
webapps/docs/changelog.xml | 4 ++++
3 files changed, 58 insertions(+)
diff --git a/build.properties.default b/build.properties.default
index 206a2a9..a5e25b2 100644
--- a/build.properties.default
+++ b/build.properties.default
@@ -333,3 +333,27 @@ jsign.checksum.value=50982facf864df4f08a051b43f7d2e42|3d203fbffdc45e837f98b7c9c5
jsign.home=${base.path}/jsign-${jsign.version}
jsign.jar=${jsign.home}/jsign-${jsign.version}.jar
jsign.loc=${base-maven.loc}/net/jsign/jsign/${jsign.version}/jsign-${jsign.version}.jar
+
+# ----- Derby, used by unit tests -----
+derby.version=10.15.2.0
+
+# checksums for Derby 10.15.2.0
+derby.checksum.enabled=true
+derby.checksum.algorithm=MD5|SHA-1
+derby.checksum.value=abff01351b19bc62a188bac08a8bb58b|b64da6681994f33ba5783ffae55cdb44885b9e70
+derby-shared.checksum.enabled=true
+derby-shared.checksum.algorithm=MD5|SHA-1
+derby-shared.checksum.value=2cb9ab8b9cfb06c2da5a1d3825d04344|ff2dfb3e2a92d593cf111baad242d156947abbc1
+derby-tools.checksum.enabled=true
+derby-tools.checksum.algorithm=MD5|SHA-1
+derby-tools.checksum.value=d41578eeb336b0e479be8f30bfd9ab9b|d63722381e0e893d797e4d531e219e2917898364
+
+derby.home=${base.path}/derby-${derby.version}
+derby.jar=${derby.home}/derby-${derby.version}.jar
+derby.loc=${base-maven.loc}/org/apache/derby/derby/${derby.version}/derby-${derby.version}.jar
+derby-shared.jar=${derby.home}/derby-shared-${derby.version}.jar
+derby-shared.loc=${base-maven.loc}/org/apache/derby/derbyshared/${derby.version}/derbyshared-${derby.version}.jar
+derby-tools.jar=${derby.home}/derby-tools-${derby.version}.jar
+derby-tools.loc=${base-maven.loc}/org/apache/derby/derbytools/${derby.version}/derbytools-${derby.version}.jar
+
+
diff --git a/build.xml b/build.xml
index de0272b..172e923 100644
--- a/build.xml
+++ b/build.xml
@@ -261,6 +261,9 @@
<pathelement location="${cglib.jar}"/>
<pathelement location="${objenesis.jar}"/>
<pathelement location="${unboundid.jar}"/>
+ <pathelement location="${derby.jar}"/>
+ <pathelement location="${derby-shared.jar}"/>
+ <pathelement location="${derby-tools.jar}"/>
<path refid="compile.classpath" />
<path refid="tomcat.classpath" />
</path>
@@ -3275,6 +3278,33 @@ skip.installer property in build.properties" />
<param name="checksum.value" value="${unboundid.checksum.value}"/>
</antcall>
+ <antcall target="downloadfile">
+ <param name="sourcefile" value="${derby.loc}"/>
+ <param name="destfile" value="${derby.jar}"/>
+ <param name="destdir" value="${derby.home}"/>
+ <param name="checksum.enabled" value="${derby.checksum.enabled}"/>
+ <param name="checksum.algorithm" value="${derby.checksum.algorithm}"/>
+ <param name="checksum.value" value="${derby.checksum.value}"/>
+ </antcall>
+
+ <antcall target="downloadfile">
+ <param name="sourcefile" value="${derby-shared.loc}"/>
+ <param name="destfile" value="${derby-shared.jar}"/>
+ <param name="destdir" value="${derby.home}"/>
+ <param name="checksum.enabled" value="${derby-shared.checksum.enabled}"/>
+ <param name="checksum.algorithm" value="${derby-shared.checksum.algorithm}"/>
+ <param name="checksum.value" value="${derby-shared.checksum.value}"/>
+ </antcall>
+
+ <antcall target="downloadfile">
+ <param name="sourcefile" value="${derby-tools.loc}"/>
+ <param name="destfile" value="${derby-tools.jar}"/>
+ <param name="destdir" value="${derby.home}"/>
+ <param name="checksum.enabled" value="${derby-tools.checksum.enabled}"/>
+ <param name="checksum.algorithm" value="${derby-tools.checksum.algorithm}"/>
+ <param name="checksum.value" value="${derby-tools.checksum.value}"/>
+ </antcall>
+
</target>
<target name="download-cobertura"
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index b6802bd..6c98caf 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -199,6 +199,10 @@
Update to JSign version 4.0 to enable code signing without the need for
the installation of additional client tools. (markt)
</update>
+ <update>
+ Add Apache Derby 10.15.2.0 to the testsuite dependencies, for JDBC
+ and DataSource testing. (remm)
+ </update>
</changelog>
</subsection>
</section>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org