diff --git a/spring-batch-samples/pom.xml b/spring-batch-samples/pom.xml
index fbbe8a09d..19a2d65f2 100644
--- a/spring-batch-samples/pom.xml
+++ b/spring-batch-samples/pom.xml
@@ -134,6 +134,12 @@
1.2
test
+
+ org.codehaus.groovy
+ groovy
+ 1.6.3
+ runtime
+
org.hibernate
hibernate
diff --git a/spring-batch-samples/src/main/resources/data/groovyJob/input/files.zip b/spring-batch-samples/src/main/resources/data/groovyJob/input/files.zip
new file mode 100644
index 000000000..20abaffa7
Binary files /dev/null and b/spring-batch-samples/src/main/resources/data/groovyJob/input/files.zip differ
diff --git a/spring-batch-samples/src/main/resources/jobs/groovyJob.xml b/spring-batch-samples/src/main/resources/jobs/groovyJob.xml
new file mode 100644
index 000000000..d4c03fe64
--- /dev/null
+++ b/spring-batch-samples/src/main/resources/jobs/groovyJob.xml
@@ -0,0 +1,56 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ class UnzipTasklet {
+ void execute() {
+ def ant = new AntBuilder()
+ ant.unzip(src:"src/main/resources/data/groovyJob/input/files.zip",
+ dest:"target/groovyJob/staging")
+ }
+ }
+
+
+
+
+
+ class ZipTasklet {
+ void execute() {
+ def ant = new AntBuilder()
+ ant.mkdir(dir:"target/groovyJob/output")
+ ant.zip(destfile:"target/groovyJob/output/files.zip",
+ basedir:"target/groovyJob/staging", includes:"**")
+ }
+ }
+
+
+
+
\ No newline at end of file
diff --git a/spring-batch-samples/src/test/java/org/springframework/batch/sample/GroovyJobFunctionalTests.java b/spring-batch-samples/src/test/java/org/springframework/batch/sample/GroovyJobFunctionalTests.java
new file mode 100644
index 000000000..53e804449
--- /dev/null
+++ b/spring-batch-samples/src/test/java/org/springframework/batch/sample/GroovyJobFunctionalTests.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2006-2007 the original author or authors.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.springframework.batch.sample;
+
+import static org.junit.Assert.assertFalse;
+import static org.junit.Assert.assertTrue;
+
+import java.io.File;
+import java.io.IOException;
+
+import org.apache.commons.io.FileUtils;
+import org.junit.Before;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+import org.springframework.test.context.ContextConfiguration;
+import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
+
+
+@RunWith(SpringJUnit4ClassRunner.class)
+@ContextConfiguration()
+public class GroovyJobFunctionalTests extends AbstractValidatingBatchLauncherTests {
+
+ @Before
+ public void removeOldData() throws IOException {
+ FileUtils.deleteDirectory(new File("target/groovyJob"));
+ }
+
+ @Test
+ public void testLaunchJob() throws Exception{
+ super.testLaunchJob();
+ }
+
+ protected void validatePostConditions() {
+ assertTrue(new File("target/groovyJob/output/files.zip").exists());
+ }
+
+ protected void validatePreConditions() {
+ assertFalse(new File("target/groovyJob/output/files.zip").exists());
+ }
+
+}
diff --git a/spring-batch-samples/src/test/resources/org/springframework/batch/sample/GroovyJobFunctionalTests-context.xml b/spring-batch-samples/src/test/resources/org/springframework/batch/sample/GroovyJobFunctionalTests-context.xml
new file mode 100644
index 000000000..5c02eb4f7
--- /dev/null
+++ b/spring-batch-samples/src/test/resources/org/springframework/batch/sample/GroovyJobFunctionalTests-context.xml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+