spring-batch icon indicating copy to clipboard operation
spring-batch copied to clipboard

Modify AssertFile class to work properly with classpath (ex: in jar file) based resources [BATCH-1910]

Open spring-projects-issues opened this issue 13 years ago • 3 comments

Jeff Evans opened BATCH-1910 and commented

The AssertFile class does not work when one or more of the resources is in the jar file (and referenced via the classpath URI prefix). That's because the current implementation uses the .getFile() method on the resource, which can fail if the file is actually in the jar and not on the filesystem. In cases where we want to include the "expected" result file in the jar, it would be desirable for the reference to the resource to work.


Affects: 2.1.9

spring-projects-issues avatar Nov 20 '12 12:11 spring-projects-issues