diff --git a/spring-batch-execution/.springBeans b/spring-batch-execution/.springBeans
index c12f307ee..d3af34221 100644
--- a/spring-batch-execution/.springBeans
+++ b/spring-batch-execution/.springBeans
@@ -1,78 +1,77 @@
-
-
- 1
-
-
-
-
-
-
- src/test/resources/simple-container-definition.xml
- src/test/resources/job-configuration.xml
- src/test/resources/org/springframework/batch/execution/repository/dao/data-source-context.xml
- src/test/resources/org/springframework/batch/execution/repository/dao/sql-dao-test.xml
- src/test/resources/org/springframework/batch/execution/configuration/test-context.xml
- src/test/resources/org/springframework/batch/execution/scope/scope-tests.xml
- src/test/resources/beanRefContext.xml
- src/test/resources/org/springframework/batch/execution/bootstrap/support/job.xml
- src/test/resources/org/springframework/batch/execution/bootstrap/support/test-environment.xml
- src/test/resources/org/springframework/batch/execution/configuration/JobRepoDb2.xml
- src/test/resources/org/springframework/batch/execution/configuration/JobRepoDerby.xml
- src/test/resources/org/springframework/batch/execution/configuration/JobRepoHsql.xml
- src/test/resources/org/springframework/batch/execution/configuration/JobRepoMissingDataSource.xml
- src/test/resources/org/springframework/batch/execution/configuration/JobRepoMySql.xml
- src/test/resources/org/springframework/batch/execution/configuration/JobRepoOk.xml
- src/test/resources/org/springframework/batch/execution/configuration/JobRepoOracle.xml
- src/test/resources/org/springframework/batch/execution/configuration/JobRepoPostgres.xml
- src/test/resources/org/springframework/batch/execution/configuration/StepMissingItemReader.xml
- src/test/resources/org/springframework/batch/execution/configuration/StepMissingItemWriter.xml
- src/test/resources/org/springframework/batch/execution/configuration/StepMissingTransactionManager.xml
- src/test/resources/org/springframework/batch/execution/configuration/StepOk.xml
- src/test/resources/org/springframework/batch/execution/configuration/StepRerunAlways.xml
- src/test/resources/org/springframework/batch/execution/configuration/StepRerunIncomplete.xml
- src/test/resources/org/springframework/batch/execution/configuration/StepRerunNever.xml
- src/test/resources/org/springframework/batch/execution/configuration/StepSpecificTransactionManager.xml
- src/test/resources/org/springframework/batch/execution/configuration/TaskletStepMissingTasklet.xml
- src/test/resources/org/springframework/batch/execution/configuration/TaskletStepOk.xml
- src/test/resources/org/springframework/batch/execution/configuration/TaskletStepRerunAlways.xml
- src/test/resources/org/springframework/batch/execution/configuration/TaskletStepRerunIncomplete.xml
- src/test/resources/org/springframework/batch/execution/configuration/TaskletStepRerunNever.xml
-
-
-
-
- true
- false
-
- src/test/resources/job-configuration.xml
- src/test/resources/simple-container-definition.xml
-
-
-
-
- true
- false
-
- src/test/resources/org/springframework/batch/execution/repository/dao/data-source-context.xml
- src/test/resources/org/springframework/batch/execution/repository/dao/sql-dao-test.xml
-
-
-
-
- true
- false
-
- src/test/resources/org/springframework/batch/execution/repository/dao/data-source-context.xml
-
-
-
-
- true
- false
-
- src/test/resources/org/springframework/batch/execution/bootstrap/support/job.xml
- src/test/resources/org/springframework/batch/execution/bootstrap/support/test-environment.xml
-
-
-
-
+
+
+ 1
+
+
+
+
+
+
+ src/test/resources/simple-container-definition.xml
+ src/test/resources/job-configuration.xml
+ src/test/resources/org/springframework/batch/execution/repository/dao/data-source-context.xml
+ src/test/resources/org/springframework/batch/execution/repository/dao/sql-dao-test.xml
+ src/test/resources/org/springframework/batch/execution/configuration/test-context.xml
+ src/test/resources/beanRefContext.xml
+ src/test/resources/org/springframework/batch/execution/bootstrap/support/job.xml
+ src/test/resources/org/springframework/batch/execution/bootstrap/support/test-environment.xml
+ src/test/resources/org/springframework/batch/execution/configuration/JobRepoDb2.xml
+ src/test/resources/org/springframework/batch/execution/configuration/JobRepoDerby.xml
+ src/test/resources/org/springframework/batch/execution/configuration/JobRepoHsql.xml
+ src/test/resources/org/springframework/batch/execution/configuration/JobRepoMissingDataSource.xml
+ src/test/resources/org/springframework/batch/execution/configuration/JobRepoMySql.xml
+ src/test/resources/org/springframework/batch/execution/configuration/JobRepoOk.xml
+ src/test/resources/org/springframework/batch/execution/configuration/JobRepoOracle.xml
+ src/test/resources/org/springframework/batch/execution/configuration/JobRepoPostgres.xml
+ src/test/resources/org/springframework/batch/execution/configuration/StepMissingItemReader.xml
+ src/test/resources/org/springframework/batch/execution/configuration/StepMissingItemWriter.xml
+ src/test/resources/org/springframework/batch/execution/configuration/StepMissingTransactionManager.xml
+ src/test/resources/org/springframework/batch/execution/configuration/StepOk.xml
+ src/test/resources/org/springframework/batch/execution/configuration/StepRerunAlways.xml
+ src/test/resources/org/springframework/batch/execution/configuration/StepRerunIncomplete.xml
+ src/test/resources/org/springframework/batch/execution/configuration/StepRerunNever.xml
+ src/test/resources/org/springframework/batch/execution/configuration/StepSpecificTransactionManager.xml
+ src/test/resources/org/springframework/batch/execution/configuration/TaskletStepMissingTasklet.xml
+ src/test/resources/org/springframework/batch/execution/configuration/TaskletStepOk.xml
+ src/test/resources/org/springframework/batch/execution/configuration/TaskletStepRerunAlways.xml
+ src/test/resources/org/springframework/batch/execution/configuration/TaskletStepRerunIncomplete.xml
+ src/test/resources/org/springframework/batch/execution/configuration/TaskletStepRerunNever.xml
+
+
+
+
+ true
+ false
+
+ src/test/resources/job-configuration.xml
+ src/test/resources/simple-container-definition.xml
+
+
+
+
+ true
+ false
+
+ src/test/resources/org/springframework/batch/execution/repository/dao/data-source-context.xml
+ src/test/resources/org/springframework/batch/execution/repository/dao/sql-dao-test.xml
+
+
+
+
+ true
+ false
+
+ src/test/resources/org/springframework/batch/execution/repository/dao/data-source-context.xml
+
+
+
+
+ true
+ false
+
+ src/test/resources/org/springframework/batch/execution/bootstrap/support/job.xml
+ src/test/resources/org/springframework/batch/execution/bootstrap/support/test-environment.xml
+
+
+
+
diff --git a/spring-batch-execution/src/main/java/org/springframework/batch/execution/resource/StepExecutionProxyResource.java b/spring-batch-execution/src/main/java/org/springframework/batch/execution/resource/StepExecutionProxyResource.java
index 87c0bcd4b..0c85d19df 100644
--- a/spring-batch-execution/src/main/java/org/springframework/batch/execution/resource/StepExecutionProxyResource.java
+++ b/spring-batch-execution/src/main/java/org/springframework/batch/execution/resource/StepExecutionProxyResource.java
@@ -187,6 +187,15 @@ public class StepExecutionProxyResource extends StepListenerSupport implements R
return delegate.isOpen();
}
+ /**
+ * @see org.springframework.core.io.Resource#isReadable()
+ */
+ public boolean isReadable() {
+ Assert.state(delegate != null, "The delegate resource has not been initialised. "
+ + "Remember to register this object as a StepListener.");
+ return delegate.isReadable();
+ }
+
/**
* Public setter for the {@link JobParametersFactory} used to translate
* {@link JobParameters} into {@link Properties}. Defaults to a
diff --git a/spring-batch-execution/src/test/resources/org/springframework/batch/execution/scope/scope-tests.xml b/spring-batch-execution/src/test/resources/org/springframework/batch/execution/scope/scope-tests.xml
deleted file mode 100644
index 28b097ac0..000000000
--- a/spring-batch-execution/src/test/resources/org/springframework/batch/execution/scope/scope-tests.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/spring-batch-infrastructure/.classpath b/spring-batch-infrastructure/.classpath
index 623ecbc7a..bf5d1cf16 100644
--- a/spring-batch-infrastructure/.classpath
+++ b/spring-batch-infrastructure/.classpath
@@ -1,9 +1,9 @@
-
-
+
+
-
+
diff --git a/spring-batch-infrastructure/.settings/org.eclipse.jdt.core.prefs b/spring-batch-infrastructure/.settings/org.eclipse.jdt.core.prefs
index 3e85e6782..d60e8dcbb 100644
--- a/spring-batch-infrastructure/.settings/org.eclipse.jdt.core.prefs
+++ b/spring-batch-infrastructure/.settings/org.eclipse.jdt.core.prefs
@@ -1,6 +1,8 @@
-#Mon Dec 10 14:44:35 EST 2007
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.4
+#Fri Feb 29 13:52:09 GMT 2008
eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.source=1.4
-org.eclipse.jdt.core.compiler.compliance=1.4
instance/org.eclipse.core.net/org.eclipse.core.net.hasMigrated=true
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.4
+org.eclipse.jdt.core.compiler.compliance=1.4
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=warning
+org.eclipse.jdt.core.compiler.source=1.4
diff --git a/spring-batch-infrastructure/.settings/org.eclipse.jdt.ui.prefs b/spring-batch-infrastructure/.settings/org.eclipse.jdt.ui.prefs
deleted file mode 100644
index 19781f17e..000000000
--- a/spring-batch-infrastructure/.settings/org.eclipse.jdt.ui.prefs
+++ /dev/null
@@ -1,3 +0,0 @@
-#Wed Aug 15 22:31:17 BST 2007
-eclipse.preferences.version=1
-internal.default.compliance=user
diff --git a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/writer/PropertyExtractingDelegatingItemWriter.java b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/writer/PropertyExtractingDelegatingItemWriter.java
index c06ac56bf..f237e7bbc 100644
--- a/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/writer/PropertyExtractingDelegatingItemWriter.java
+++ b/spring-batch-infrastructure/src/main/java/org/springframework/batch/item/writer/PropertyExtractingDelegatingItemWriter.java
@@ -42,8 +42,7 @@ public class PropertyExtractingDelegatingItemWriter extends AbstractMethodInvoki
*/
public void write(Object item) throws Exception {
// helper for extracting property values from a bean
- BeanWrapper beanWrapper = new BeanWrapperImpl();
- beanWrapper.setWrappedInstance(item);
+ BeanWrapper beanWrapper = new BeanWrapperImpl(item);
Object[] methodArguments = new Object[fieldsUsedAsTargetMethodArguments.length];
for (int i = 0; i < fieldsUsedAsTargetMethodArguments.length; i++) {
diff --git a/spring-batch-samples/.classpath b/spring-batch-samples/.classpath
index 6ceeb8b67..b6d9ce7c7 100644
--- a/spring-batch-samples/.classpath
+++ b/spring-batch-samples/.classpath
@@ -1,10 +1,10 @@
-
+
-
+
-
+