Announcement Announcement Module
Collapse
No announcement yet.
new line character in Header on windows server Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • new line character in Header on windows server

    Hi,
    We are able to generate output file with header by implementing FlatFileHeaderCallback and using delegate for FlatFileItemWriter.

    But we see a special character(new line character) when we see output in windows server 2003 platform and we dont see new line character on windows XP .

    When I further looked at FlatFileitemwriter soruce code I see following
    if (headerCallback != null) {
    try {
    headerCallback.writeHeader(outputState.outputBuffe redWriter);
    outputState.write("\n");
    }.

    I think we need to replace "\n" with DEFAULT_LINE_SEPARATOR which is available in the class.

    I have created my own flatfileitemwriter and made the change and we see proper output in windows server 2003 . Please let me know if this fix can go into framework.

    Thanks

  • #2
    Can you just create a JIRA issue please?

    Comment


    • #3
      Jira issue

      Issue created

      Key: BATCH-1320
      URL: http://jira.springsource.org/browse/BATCH-1320
      Project: Spring Batch
      Issue Type: Bug
      Components: Infrastructure
      Affects Versions: 2.0.0
      Environment: Windows server 2003
      Reporter: anil

      Comment


      • #4
        Thanks Dave . That was really quick fix Appreciate it.

        Comment

        Working...
        X