Uploaded image for project: 'BatchEE'
  1. BatchEE
  2. BATCHEE-70

upgrade to jsefa 1.1.1

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.3-incubating
    • None
    • None

    Description

      Seems jsefa 1.1.1 is on central, task is to:

      • check license is still compatible with apache
      • upgrade our version in our extension
      • add header support for csv (and maybe more)

      if it can help on the last point I used in a project:

      public class JSefaWriterWithHead extends JSefaCsvWriter {
          @Inject
          @BatchProperty
          private String header;
      
          @Inject
          @BatchProperty
          private String headerLineBreak;
      
          @Override
          public void open(final Serializable checkpoint) throws Exception {
              super.open(checkpoint);
              if (isEmptyFile(checkpoint)) {
                  transactionalWriter.write(header + ofNullable(headerLineBreak).orElse(System.getProperty("line.separator")));
              }
          }
      
          private boolean isEmptyFile(final Serializable checkpoint) {
              return checkpoint == null || Number.class.isInstance(checkpoint) && Number.class.cast(checkpoint).longValue() == 0;
          }
      }
      

      Attachments

        Activity

          People

            rsandtner Reinhard Sandtner
            romain.manni-bucau Romain Manni-Bucau
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: