Revision: 2528 http://archive-access.svn.sourceforge.net/archive-access/?rev=2528&view=rev Author: bradtofel Date: 2008-08-08 23:02:29 +0000 (Fri, 08 Aug 2008) Log Message: ----------- HACKHACK: moved log creation after BDB creation - default configuration may need locationdb directory to be created. Modified Paths: -------------- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/resourcestore/locationdb/BDBResourceFileLocationDB.java Modified: trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/resourcestore/locationdb/BDBResourceFileLocationDB.java =================================================================== --- trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/resourcestore/locationdb/BDBResourceFileLocationDB.java 2008-08-08 23:00:44 UTC (rev 2527) +++ trunk/archive-access/projects/wayback/wayback-core/src/main/java/org/archive/wayback/resourcestore/locationdb/BDBResourceFileLocationDB.java 2008-08-08 23:02:29 UTC (rev 2528) @@ -86,16 +86,16 @@ } public void init() throws IOException { - if(logPath == null) { - throw new IOException("No logPath"); - } - log = new ResourceFileLocationDBLog(logPath); bdb = new BDBRecordSet(); try { bdb.initializeDB(bdbPath,bdbName); } catch (DatabaseException e) { throw wrapDBException(e); } + if(logPath == null) { + throw new IOException("No logPath"); + } + log = new ResourceFileLocationDBLog(logPath); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |