From baff82b05735449633fe623b9bfeb79d8dbeb5f9 Mon Sep 17 00:00:00 2001 From: trisberg Date: Fri, 23 Jan 2009 15:49:12 +0000 Subject: [PATCH] BATCH-1001: applied changes from the patch to set restartable to true as default --- .../java/org/springframework/batch/core/job/AbstractJob.java | 4 ++-- .../batch/core/configuration/xml/spring-batch-2.0.xsd | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-batch-core/src/main/java/org/springframework/batch/core/job/AbstractJob.java b/spring-batch-core/src/main/java/org/springframework/batch/core/job/AbstractJob.java index b48b0260d..69f1a063a 100644 --- a/spring-batch-core/src/main/java/org/springframework/batch/core/job/AbstractJob.java +++ b/spring-batch-core/src/main/java/org/springframework/batch/core/job/AbstractJob.java @@ -1,5 +1,5 @@ /* - * Copyright 2006-2007 the original author or authors. + * Copyright 2006-2009 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. @@ -56,7 +56,7 @@ public abstract class AbstractJob implements Job, BeanNameAware, InitializingBea private String name; - private boolean restartable = false; + private boolean restartable = true; private JobRepository jobRepository; diff --git a/spring-batch-core/src/main/resources/org/springframework/batch/core/configuration/xml/spring-batch-2.0.xsd b/spring-batch-core/src/main/resources/org/springframework/batch/core/configuration/xml/spring-batch-2.0.xsd index 0fa26ca47..d2b5059ec 100644 --- a/spring-batch-core/src/main/resources/org/springframework/batch/core/configuration/xml/spring-batch-2.0.xsd +++ b/spring-batch-core/src/main/resources/org/springframework/batch/core/configuration/xml/spring-batch-2.0.xsd @@ -49,7 +49,7 @@ + default="true" use="optional">