3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-30 23:02:15 +00:00

Prepare Derby for merging

This commit is contained in:
Miron Cuperman 2012-01-05 15:58:35 -08:00
parent 826f2d2c51
commit 247a07a3ab
2 changed files with 6 additions and 2 deletions

View File

@ -248,7 +248,9 @@
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derby</artifactId>
<version>10.8.2.2</version>
<version>${derby.version}</version>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
<!-- In Android these libraries are incomplete,
@ -267,6 +269,7 @@
<easymock.version>3.0</easymock.version>
<junit.version>4.8.2</junit.version>
<slf4j.version>1.6.2</slf4j.version>
<derby.version>10.8.2.2</derby.version>
</properties>
</project>

View File

@ -68,7 +68,8 @@ public class DerbyBlockStoreTest {
for (File c : f.listFiles())
deleteRecursively(c);
}
if (!f.delete())
if (f.exists() && !f.delete())
throw new FileNotFoundException("Failed to delete file: " + f);
}
}