Revision 45546
Added by Michele Artini over 7 years ago
TemporaryExistDatabase.java | ||
---|---|---|
6 | 6 |
import org.apache.commons.io.FileUtils; |
7 | 7 |
import org.apache.commons.logging.Log; |
8 | 8 |
import org.apache.commons.logging.LogFactory; |
9 |
import org.springframework.beans.factory.annotation.Value; |
|
10 | 9 |
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
11 | 10 |
import org.springframework.stereotype.Component; |
12 | 11 |
|
... | ... | |
20 | 19 |
|
21 | 20 |
private File tempDir = null; |
22 | 21 |
|
23 |
@Value("${is.database.persistent}") |
|
24 |
private String s; |
|
25 |
|
|
26 | 22 |
@Override |
27 | 23 |
public void stop() { |
28 | 24 |
super.stop(); |
... | ... | |
35 | 31 |
|
36 | 32 |
@Override |
37 | 33 |
protected File getDatabaseDirectory() { |
38 |
log.info("****************************** " + s); |
|
39 |
|
|
40 | 34 |
try { |
41 | 35 |
if (tempDir == null) { |
42 | 36 |
final File tmpName = File.createTempFile("exist", ""); |
Also available in: Unified diff