diff --git a/build.gradle b/build.gradle index fc506e2e5..2da4c5b3b 100644 --- a/build.gradle +++ b/build.gradle @@ -693,12 +693,12 @@ task schemaZip(type: Zip) { } subproject.sourceSets.main.resources.find { - it.path.endsWith('META-INF/spring.schemas') + it.path.endsWith("META-INF${File.separator}spring.schemas") }?.withInputStream { schemas.load(it) } for (def key : schemas.keySet()) { File xsdFile = subproject.sourceSets.main.resources.find { - it.path.endsWith(schemas.get(key)) + it.path.replaceAll('\\\\', '/').endsWith(schemas.get(key)) } assert xsdFile != null into ("batch/${shortName}") { diff --git a/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/FaultTolerantExceptionClassesTests.java b/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/FaultTolerantExceptionClassesTests.java index 9d7082026..aa6acdb3b 100644 --- a/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/FaultTolerantExceptionClassesTests.java +++ b/spring-batch-core/src/test/java/org/springframework/batch/core/step/item/FaultTolerantExceptionClassesTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2009-2012 the original author or authors. + * Copyright 2009-2016 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. @@ -37,8 +37,8 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.transaction.UnexpectedRollbackException; import java.util.ArrayList; -import java.util.Date; import java.util.List; +import java.util.UUID; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; @@ -343,8 +343,8 @@ public class FaultTolerantExceptionClassesTests implements ApplicationContextAwa stepsToExecute.add((Step) applicationContext.getBean(stepName)); job.setSteps(stepsToExecute); - JobExecution jobExecution = jobLauncher.run(job, new JobParametersBuilder().addLong("timestamp", - new Date().getTime()).toJobParameters()); + JobExecution jobExecution = jobLauncher.run(job, new JobParametersBuilder().addString("uuid", + UUID.randomUUID().toString()).toJobParameters()); return jobExecution.getStepExecutions().iterator().next(); }