diff --git a/changelog.md b/changelog.md index 5ad278e..19eae6c 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,11 @@ +1.9.31 +====== + +* 2016-02-01 Bump to gae 1.9.31 (ra) +* 2016-02-01 Bump to Ninja 5.3.1 (ra) +* 2016-02-01 Fix archetype bug #14 (ra) + + 1.9.30 ====== diff --git a/ninja-appengine-blog-archetype/src/main/resources/archetype-resources/src/main/java/conf/StartupActions.java b/ninja-appengine-blog-archetype/src/main/resources/archetype-resources/src/main/java/conf/StartupActions.java index 8e9df69..7dcd7a0 100644 --- a/ninja-appengine-blog-archetype/src/main/resources/archetype-resources/src/main/java/conf/StartupActions.java +++ b/ninja-appengine-blog-archetype/src/main/resources/archetype-resources/src/main/java/conf/StartupActions.java @@ -10,6 +10,11 @@ import com.google.inject.Inject; import com.googlecode.objectify.Objectify; +import com.googlecode.objectify.ObjectifyService; +import java.io.Closeable; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; @Singleton public class StartupActions { @@ -23,13 +28,13 @@ public StartupActions(NinjaProperties ninjaProperties) { @Start(order=100) public void generateDummyDataWhenInTest() { - if (ninjaProperties.isDev()) { - - ObjectifyProvider.setup(); - + try (Closeable closeable = ObjectifyService.begin()) { + ObjectifyProvider.setup(); + } catch (IOException ex) { + Logger.getLogger(StartupActions.class.getName()).log(Level.SEVERE, null, ex); + } } - } } diff --git a/ninja-appengine-integration-test-blog/src/main/java/conf/StartupActions.java b/ninja-appengine-integration-test-blog/src/main/java/conf/StartupActions.java index 8fe1720..ae51439 100644 --- a/ninja-appengine-integration-test-blog/src/main/java/conf/StartupActions.java +++ b/ninja-appengine-integration-test-blog/src/main/java/conf/StartupActions.java @@ -7,6 +7,11 @@ import com.google.inject.Inject; import com.googlecode.objectify.Objectify; +import com.googlecode.objectify.ObjectifyService; +import java.io.Closeable; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; @Singleton public class StartupActions { @@ -20,13 +25,13 @@ public StartupActions(NinjaProperties ninjaProperties) { @Start(order=100) public void generateDummyDataWhenInTest() { - if (ninjaProperties.isDev()) { - - ObjectifyProvider.setup(); - + try (Closeable closeable = ObjectifyService.begin()) { + ObjectifyProvider.setup(); + } catch (IOException ex) { + Logger.getLogger(StartupActions.class.getName()).log(Level.SEVERE, null, ex); + } } - } } diff --git a/pom.xml b/pom.xml index 7a70b96..93d9681 100644 --- a/pom.xml +++ b/pom.xml @@ -41,8 +41,8 @@ - 1.9.30 - 5.2.2 + 1.9.31 + 5.3.1 UTF-8 UTF-8 ${project.version}