File: 0004_no_derby_db.diff

package info (click to toggle)
libspring-java 3.0.6.RELEASE-17
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 50,744 kB
  • ctags: 58,990
  • sloc: java: 325,579; xml: 67,955; sql: 176; makefile: 40; ruby: 33; sh: 6
file content (36 lines) | stat: -rw-r--r-- 1,574 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Description: There is no package for Derby DB in Debian.
 Don't compile EmbeddedDatabaseConfigurerFactory.
Author: Damien Raude-Morvan <drazzib@debian.org>
Last-Update: 2010-06-20
Forwarded: not-needed
--- a/projects/org.springframework.jdbc/build.xml
+++ b/projects/org.springframework.jdbc/build.xml
@@ -4,4 +4,15 @@
 	<property file="${basedir}/../build.versions"/>
 	<import file="${basedir}/../build-spring-framework/package-bundle.xml"/>
 	<import file="${basedir}/../spring-build/standard/default.xml"/>
+
+	<macrodef name="pre-compile">
+		<attribute name="classpath.id"/>
+		<attribute name="input.dir"/>
+		<attribute name="output.dir"/>
+		<attribute name="resources.dir"/>
+		<sequential>
+			<delete file="${basedir}/src/main/java/org/springframework/jdbc/datasource/embedded/DerbyEmbeddedDatabaseConfigurer.java"/>
+		</sequential>
+	</macrodef>
+
 </project>
--- a/projects/org.springframework.jdbc/src/main/java/org/springframework/jdbc/datasource/embedded/EmbeddedDatabaseConfigurerFactory.java
+++ b/projects/org.springframework.jdbc/src/main/java/org/springframework/jdbc/datasource/embedded/EmbeddedDatabaseConfigurerFactory.java
@@ -36,8 +36,8 @@
 					return HsqlEmbeddedDatabaseConfigurer.getInstance();
 				case H2:
 					return H2EmbeddedDatabaseConfigurer.getInstance();
-				case DERBY:
-					return DerbyEmbeddedDatabaseConfigurer.getInstance();
+				//case DERBY:
+				//	return DerbyEmbeddedDatabaseConfigurer.getInstance();
 				default:
 					throw new UnsupportedOperationException("Other embedded database types not yet supported");
 			}