From 11faa837afa4f41d240166d2717b0a7b4832e5cc Mon Sep 17 00:00:00 2001 From: dsyer Date: Sat, 8 Nov 2008 09:29:26 +0000 Subject: [PATCH] Fix batch-test pom to match the correct parent --- .../batch/core/step/AbstractStep.java | 12 ++-- spring-batch-test/pom.xml | 60 ++++++++----------- 2 files changed, 28 insertions(+), 44 deletions(-) diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/step/AbstractStep.java b/spring-batch-core/src/main/java/org/springframework/batch/core/step/AbstractStep.java index a69bcd369..62a978ed4 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/step/AbstractStep.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/step/AbstractStep.java @@ -50,11 +50,6 @@ import org.springframework.util.Assert; public abstract class AbstractStep implements Step, InitializingBean, BeanNameAware { - /** - * Exit code for interrupted status. - */ - public static final String JOB_INTERRUPTED = "INTERRUPTED"; - private static final Log logger = LogFactory.getLog(AbstractStep.class); private String name; @@ -154,7 +149,8 @@ public abstract class AbstractStep implements Step, InitializingBean, * the current step context * @throws Exception */ - protected abstract void doExecute(StepExecution stepExecution) throws Exception; + protected abstract void doExecute(StepExecution stepExecution) + throws Exception; /** * Extension point for subclasses to provide callbacks to their @@ -353,8 +349,8 @@ public abstract class AbstractStep implements Step, InitializingBean, ExitStatus exitStatus; if (ex instanceof JobInterruptedException || ex.getCause() instanceof JobInterruptedException) { - exitStatus = new ExitStatus(false, JOB_INTERRUPTED, - JobInterruptedException.class.getName()); + exitStatus = ExitStatus.INTERRUPTED + .addExitDescription(JobInterruptedException.class.getName()); } else if (ex instanceof NoSuchJobException || ex.getCause() instanceof NoSuchJobException) { exitStatus = new ExitStatus(false, ExitCodeMapper.NO_SUCH_JOB, ex diff --git a/spring-batch-test/pom.xml b/spring-batch-test/pom.xml index 957f6a4ad..f45025858 100755 --- a/spring-batch-test/pom.xml +++ b/spring-batch-test/pom.xml @@ -1,41 +1,23 @@ - + - spring-batch + org.springframework.batch org.springframework.batch 2.0.0.CI-SNAPSHOT .. 4.0.0 org.springframework.batch.test - Test 2.0.0.CI-SNAPSHOT + Test jar Domain for batch job testing - - - clover - - - - - maven-clover-plugin - - - - - - - maven-clover-plugin - - - - - org.springframework.batch - org.springframework.batch.core + org.springframework.batch.core + ${project.version} @@ -44,27 +26,33 @@ org.springframework - spring-test - - - commons-io - commons-io + org.springframework.test + org.springframework - spring-jdbc + org.springframework.jdbc + - commons-dbcp - commons-dbcp + org.apache.commons + com.springsource.org.apache.commons.io + - hsqldb - hsqldb + org.apache.commons + com.springsource.org.apache.commons.dbcp + - commons-collections - commons-collections + org.hsqldb + com.springsource.org.hsqldb + + + + org.apache.commons + com.springsource.org.apache.commons.collections +