diff --git a/archetypes/simple-cli/pom.xml b/archetypes/simple-cli/pom.xml
index 11889a2b2..bcc0bba90 100644
--- a/archetypes/simple-cli/pom.xml
+++ b/archetypes/simple-cli/pom.xml
@@ -16,7 +16,7 @@
true
- 3.0.0.BUILD-SNAPSHOT
+ 2.5.6.A
1.0.0.M1
@@ -67,9 +67,15 @@
${spring.framework.version}
test
+
+ org.springframework
+ org.springframework.jdbc
+ ${spring.framework.version}
+ runtime
+
org.springframework.batch
- org.springframework.batch.samples
+ org.springframework.batch.core
${pom.version}
diff --git a/archetypes/simple-cli/src/main/resources/META-INF/spring/module-context.xml b/archetypes/simple-cli/src/main/resources/META-INF/spring/module-context.xml
index c43fa6801..43a531208 100644
--- a/archetypes/simple-cli/src/main/resources/META-INF/spring/module-context.xml
+++ b/archetypes/simple-cli/src/main/resources/META-INF/spring/module-context.xml
@@ -5,8 +5,6 @@
Example job to get you started. It provides a skeleton for a typical batch application.
-
-
@@ -22,4 +20,17 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/archetypes/simple-cli/src/main/resources/batch.properties b/archetypes/simple-cli/src/main/resources/batch.properties
new file mode 100644
index 000000000..688179a6b
--- /dev/null
+++ b/archetypes/simple-cli/src/main/resources/batch.properties
@@ -0,0 +1,11 @@
+# Placeholders batch.*
+# for HSQLDB:
+batch.jdbc.driver=org.hsqldb.jdbcDriver
+batch.jdbc.url=jdbc:hsqldb:mem:testdb;sql.enforce_strict_size=true
+# use this one for a separate server process so you can inspect the results
+# (or add it to system properties with -D to override at run time).
+# batch.jdbc.url=jdbc:hsqldb:hsql://localhost:9005/samples
+batch.jdbc.user=sa
+batch.jdbc.password=
+batch.schema=
+batch.schema.script=schema-hsqldb.sql
diff --git a/archetypes/simple-cli/src/main/resources/launch-context.xml b/archetypes/simple-cli/src/main/resources/launch-context.xml
index 6df744a45..7f8867ad7 100644
--- a/archetypes/simple-cli/src/main/resources/launch-context.xml
+++ b/archetypes/simple-cli/src/main/resources/launch-context.xml
@@ -1,9 +1,43 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/archetypes/simple-cli/src/test/java/example/ExampleJobConfigurationTests.java b/archetypes/simple-cli/src/test/java/example/ExampleJobConfigurationTests.java
index 63386985f..2900f2d6d 100644
--- a/archetypes/simple-cli/src/test/java/example/ExampleJobConfigurationTests.java
+++ b/archetypes/simple-cli/src/test/java/example/ExampleJobConfigurationTests.java
@@ -19,6 +19,8 @@ import static org.junit.Assert.assertNotNull;
import org.junit.Test;
import org.junit.runner.RunWith;
+import org.springframework.batch.core.Job;
+import org.springframework.batch.core.JobParameters;
import org.springframework.batch.core.launch.JobLauncher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
@@ -34,9 +36,18 @@ public class ExampleJobConfigurationTests {
@Autowired
private JobLauncher jobLauncher;
+
+ @Autowired
+ private Job job;
@Test
public void testSimpleProperties() throws Exception {
assertNotNull(jobLauncher);
}
+
+ @Test
+ public void testLaunchJob() throws Exception {
+ jobLauncher.run(job, new JobParameters());
+ }
+
}