I am facing a problem while trying to store an end line separator in a java properties file in order to import it into an xml configuration file.
With the following xml :
<bean id="fooWriter" class="org.springframework.batch.item.file.FlatFileItemWriter">
<property name="resource" value="file:${myJob.file.output}" />
<property name="lineSeparator" value="${myJob.file.lineSeparator}" />
</bean>
The following property entry :
myJob.file.lineSeparator =
Gives : foo
bar
myJob.file.lineSeparator = \n
Gives : foobar(Nothing)
myJob.file.lineSeparator = \\n
Gives : foo\nbar
myJob.file.lineSeparator = '\n' or "\n"
Gives :
foo' or foo"
'bar or "bar
it seems like it's working but the quotes remains.
Any solution to externalize the endline separator ?