Skip to content

Commit 234a2f0

Browse files
committed
BATCH-2699: move derby's generated files under "build" directory
1 parent fbbd3d3 commit 234a2f0

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

spring-batch-core-tests/src/test/java/test/jdbc/datasource/DerbyDataSourceFactoryBean.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2009-2014 the original author or authors.
2+
* Copyright 2009-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@
2424

2525
public class DerbyDataSourceFactoryBean extends AbstractFactoryBean<DataSource> {
2626

27-
private String dataDirectory = "derby-home";
27+
private String dataDirectory = "build/derby-home";
2828

2929
public void setDataDirectory(String dataDirectory) {
3030
this.dataDirectory = dataDirectory;
@@ -38,7 +38,7 @@ protected DataSource createInstance() throws Exception {
3838
System.setProperty("derby.storage.pageCacheSize", "100");
3939

4040
final EmbeddedDataSource ds = new EmbeddedDataSource();
41-
ds.setDatabaseName("derbydb");
41+
ds.setDatabaseName("build/derbydb");
4242
ds.setCreateDatabase("create");
4343

4444
return ds;

spring-batch-core-tests/src/test/resources/batch-derby.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Placeholders batch.*
22
# for Derby:
33
batch.jdbc.driver=org.apache.derby.jdbc.EmbeddedDriver
4-
batch.jdbc.url=jdbc:derby:derby-home/test;create=true
4+
batch.jdbc.url=jdbc:derby:build/derby-home/test;create=true
55
batch.jdbc.user=sa
66
batch.jdbc.password=
77
batch.jdbc.testWhileIdle=false

spring-batch-infrastructure-tests/src/test/resources/batch-derby.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Placeholders batch.*
22
# for Derby:
33
batch.jdbc.driver=org.apache.derby.jdbc.EmbeddedDriver
4-
batch.jdbc.url=jdbc:derby:derby-home/test;create=true
4+
batch.jdbc.url=jdbc:derby:build/derby-home/test;create=true
55
batch.jdbc.user=app
66
batch.jdbc.password=
77
batch.jdbc.testWhileIdle=false
@@ -12,4 +12,4 @@ batch.business.schema.script=classpath:/org/springframework/batch/jms/init.sql
1212
batch.data.source.init=true
1313
batch.database.incrementer.class=org.springframework.jdbc.support.incrementer.DerbyMaxValueIncrementer
1414
batch.database.incrementer.parent=columnIncrementerParent
15-
batch.verify.cursor.position=false
15+
batch.verify.cursor.position=false

spring-batch-infrastructure/src/test/java/org/springframework/batch/support/DatabaseTypeIntegrationTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2009 the original author or authors.
2+
* Copyright 2006-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -39,7 +39,7 @@ public void testH2() throws Exception {
3939
@Test
4040
public void testDerby() throws Exception {
4141
DataSource dataSource = DatabaseTypeTestUtils.getDataSource(org.apache.derby.jdbc.EmbeddedDriver.class,
42-
"jdbc:derby:derby-home/test;create=true", "sa", "");
42+
"jdbc:derby:./build/derby-home/test;create=true", "sa", "");
4343
assertEquals(DatabaseType.DERBY, DatabaseType.fromMetaData(dataSource));
4444
dataSource.getConnection();
4545
}

spring-batch-infrastructure/src/test/java/test/jdbc/datasource/DerbyDataSourceFactoryBean.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2014 the original author or authors.
2+
* Copyright 2010-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -28,7 +28,7 @@ public class DerbyDataSourceFactoryBean extends AbstractFactoryBean<DataSource>
2828

2929
private static Log logger = LogFactory.getLog(DerbyDataSourceFactoryBean.class);
3030

31-
private String dataDirectory = "derby-home";
31+
private String dataDirectory = "build/derby-home";
3232

3333
public void setDataDirectory(String dataDirectory) {
3434
this.dataDirectory = dataDirectory;
@@ -42,7 +42,7 @@ protected DataSource createInstance() throws Exception {
4242
System.setProperty("derby.storage.pageCacheSize", "100");
4343

4444
final EmbeddedDataSource ds = new EmbeddedDataSource();
45-
ds.setDatabaseName("derbydb");
45+
ds.setDatabaseName("build/derbydb");
4646
ds.setCreateDatabase("create");
4747

4848
logger.info("Created instance of " + ds.toString());

0 commit comments

Comments
 (0)