Announcement Announcement Module
Collapse
No announcement yet.
Writing single line file using FlatFileItemWriter Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Writing single line file using FlatFileItemWriter

    Hello there,
    How can I produce a single line file using spring batch.
    requirement:
    I have 10 domain objects(UserData for instance) that have to be written to a flat file. Each object should be appended to the existing line.
    I did n't find a possibility to tell the FlatFileItemWriter not to use the line separator property
    which is retrieved as private static final String LINE_SEPARATOR = System.getProperty("line.separator")

    actual output by the writer :
    userdata1
    userdata2
    userdata3
    expected output : userdata1userdata2userdata3
    Any help is appreciated.
    Arun

  • #2
    The answer to this question would pretty much be the same as it is for this one:

    http://forum.springframework.org/showthread.php?t=56261

    Feel free to create a JIRA issue requesting the feature though.

    Comment

    Working...
    X