Hi Francis, I got an error when calling mvn install which I have never had before. I don't know what the reason for this error is but I don't think it has anything to do with Empire-db. And I did not know any other way to solve it.
Regards Rainer > -----Ursprüngliche Nachricht----- > Von: Francis De Brabandere [mailto:[email protected]] > Gesendet: Donnerstag, 28. Januar 2010 15:27 > An: [email protected] > Betreff: Re: svn commit: r904100 - /incubator/empire-db/trunk/empire- > db/src/test/java/org/apache/empire/db/hsql/DBDatabaseDriverHSqlTest.java > > This is not a proper solution, you expect that file not to be in use > any more after your tests. This indicates somehow that the database > was not closed... > > On Thu, Jan 28, 2010 at 3:23 PM, <[email protected]> wrote: > > Author: doebele > > Date: Thu Jan 28 14:23:30 2010 > > New Revision: 904100 > > > > URL: http://svn.apache.org/viewvc?rev=904100&view=rev > > Log: > > Problem wit File delete in test-class > > > > Modified: > > incubator/empire-db/trunk/empire- > db/src/test/java/org/apache/empire/db/hsql/DBDatabaseDriverHSqlTest.java > > > > Modified: incubator/empire-db/trunk/empire- > db/src/test/java/org/apache/empire/db/hsql/DBDatabaseDriverHSqlTest.java > > URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire- > db/src/test/java/org/apache/empire/db/hsql/DBDatabaseDriverHSqlTest.java > ?rev=904100&r1=904099&r2=904100&view=diff > > > ======================================================================== > ====== > > --- incubator/empire-db/trunk/empire- > db/src/test/java/org/apache/empire/db/hsql/DBDatabaseDriverHSqlTest.java > (original) > > +++ incubator/empire-db/trunk/empire- > db/src/test/java/org/apache/empire/db/hsql/DBDatabaseDriverHSqlTest.java > Thu Jan 28 14:23:30 2010 > > @@ -63,11 +63,10 @@ > > db.getCreateDDLScript(db.getDriver(), script); > > script.run(db.getDriver(), conn, false); > > > > - > > } > > > > @AfterClass > > - public static void shutdown() throws SQLException, IOException > > + public static void shutdown() throws SQLException > > { > > try > > { > > @@ -80,7 +79,11 @@ > > { > > DBTools.close(conn); > > // clean up > > - FileUtils.deleteDirectory(new File(PATH)); > > + try { > > + FileUtils.deleteDirectory(new File(PATH)); > > + } catch (IOException e) { > > + // ingore > > + } > > } > > > > } > > > > > > > > > > -- > http://www.somatik.be > Microsoft gives you windows, Linux gives you the whole house.
