From 30e1bb5597e914739cc5cb2d6a92819170550b5e Mon Sep 17 00:00:00 2001 From: tombaeyens Date: Tue, 31 Jul 2012 11:46:02 +0000 Subject: [PATCH] debugging upgrade ci problems --- .../activiti/engine/impl/db/DbSqlSession.java | 2 ++ modules/activiti-upgrade/pom.xml | 4 +-- qa/upgrade/build.xml | 34 +++++++++++++++---- qa/upgrade/logging.properties | 5 +++ 4 files changed, 37 insertions(+), 8 deletions(-) create mode 100644 qa/upgrade/logging.properties diff --git a/modules/activiti-engine/src/main/java/org/activiti/engine/impl/db/DbSqlSession.java b/modules/activiti-engine/src/main/java/org/activiti/engine/impl/db/DbSqlSession.java index f25c34dc31f..a785a376d43 100644 --- a/modules/activiti-engine/src/main/java/org/activiti/engine/impl/db/DbSqlSession.java +++ b/modules/activiti-engine/src/main/java/org/activiti/engine/impl/db/DbSqlSession.java @@ -810,6 +810,7 @@ private void executeSchemaResource(String operation, String component, String re throw new ActivitiException("database update java class '"+upgradestepClassName+"' can't be instantiated: "+e.getMessage(), e); } try { + log.fine("executing upgrade step java class "+upgradestepClassName); dbUpgradeStep.execute(this); } catch (Exception e) { throw new ActivitiException("error while executing database update java class '"+upgradestepClassName+"': "+e.getMessage(), e); @@ -822,6 +823,7 @@ private void executeSchemaResource(String operation, String component, String re Statement jdbcStatement = connection.createStatement(); try { // no logging needed as the connection will log it + log.fine("SQL: "+sqlStatement); jdbcStatement.execute(sqlStatement); jdbcStatement.close(); } catch (Exception e) { diff --git a/modules/activiti-upgrade/pom.xml b/modules/activiti-upgrade/pom.xml index 02c82b7edb5..21d4705d89c 100644 --- a/modules/activiti-upgrade/pom.xml +++ b/modules/activiti-upgrade/pom.xml @@ -122,7 +122,7 @@ false false - true + **/*AfterTest.java @@ -161,7 +161,7 @@ - + diff --git a/qa/upgrade/build.xml b/qa/upgrade/build.xml index f4a6c769a97..40dbb774ade 100644 --- a/qa/upgrade/build.xml +++ b/qa/upgrade/build.xml @@ -2,7 +2,7 @@ - + @@ -24,11 +24,23 @@ - + + + + + + + + + + - + + + + @@ -38,7 +50,6 @@ - @@ -49,13 +60,15 @@ - + + + + - @@ -80,6 +93,9 @@ + + + @@ -98,6 +114,9 @@ + + + @@ -107,6 +126,9 @@ + + + diff --git a/qa/upgrade/logging.properties b/qa/upgrade/logging.properties new file mode 100644 index 00000000000..cb61aa17fba --- /dev/null +++ b/qa/upgrade/logging.properties @@ -0,0 +1,5 @@ +handlers = java.util.logging.ConsoleHandler +.level = FINE +java.util.logging.ConsoleHandler.level=FINEST +java.util.logging.ConsoleHandler.formatter=org.activiti.engine.impl.util.LogUtil$LogFormatter +