[cvs] expresso commit by lhamel: no try/catch necessary now
JCorporate Ltd
jcorp at jcorp2.servlets.net
Tue Oct 19 18:34:17 PDT 2004
Log Message:
-----------
no try/catch necessary now
Modified Files:
--------------
expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/services/test:
SchemaCreator.java
Revision Data
-------------
Index: SchemaCreator.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/services/test/SchemaCreator.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -Lexpresso-web/WEB-INF/src/com/jcorporate/expresso/services/test/SchemaCreator.java -Lexpresso-web/WEB-INF/src/com/jcorporate/expresso/services/test/SchemaCreator.java -u -r1.17 -r1.18
--- expresso-web/WEB-INF/src/com/jcorporate/expresso/services/test/SchemaCreator.java
+++ expresso-web/WEB-INF/src/com/jcorporate/expresso/services/test/SchemaCreator.java
@@ -64,11 +64,6 @@
package com.jcorporate.expresso.services.test;
-import java.util.Enumeration;
-import java.util.Vector;
-
-import org.apache.log4j.Logger;
-
import com.jcorporate.expresso.core.db.DBException;
import com.jcorporate.expresso.core.dbobj.DBObject;
import com.jcorporate.expresso.core.dbobj.Schema;
@@ -76,7 +71,10 @@
import com.jcorporate.expresso.core.utility.DBTool;
import com.jcorporate.expresso.kernel.InstallLog;
import com.jcorporate.expresso.services.dbobj.SchemaList;
-import com.jcorporate.expresso.services.html.HtmlException;
+import org.apache.log4j.Logger;
+
+import java.util.Enumeration;
+import java.util.Vector;
/**
@@ -84,7 +82,6 @@
* The big difference between this and other versions is that this will work
* on a blank database.
* @author Michael Rimov
- * @version $Revision$ $Date$
*/
public class SchemaCreator {
static Logger log = Logger.getLogger(SchemaCreator.class);
@@ -174,7 +171,7 @@
//Nothing to create.
return true;
}
- try {
+
DBTool.createTables(installLog, toCreate, getMyContext());
for (Enumeration e = toCreate.elements(); e.hasMoreElements();) {
@@ -201,9 +198,7 @@
DBTool.populateTables(installLog, toCreate, getMyContext());
DBTool.setupConfig(installLog, toCreate, getMyContext());
DBTool.otherSetups(installLog, toCreate, getMyContext());
- } catch (HtmlException htmlex) {
- log.error("Got an HTMLException., htmlex");
- }
+
if (!oneSchema.getClass().getName().equals("com.jcorporate.expresso.core.ExpressoSchema")) {
SchemaList sl = new SchemaList(SecuredDBObject.SYSTEM_ACCOUNT);
sl.setDataContext(getMyContext());
More information about the cvs
mailing list