Package org.atc.tools.ant.writers

Examples of org.atc.tools.ant.writers.ItemWriter


    if (shouldWriteToProperty) {
      getProject().setNewProperty(Configuration.property, optBuffer.toString());
    }

    ItemWriter itemWriter = itemWriterMap.get(Configuration.optFormat);
    vlog(format("Writing using itemWriter '%s'", itemWriter));

    if (itemWriter == null) {
      itemWriter = itemWriterMap.get(Format.DEFAULT);
      log(format("Warning: using DEFAULT output format because I couldn't find a writer for '%s'", Configuration.optFormat));
    }

    itemWriter.write(outStream, itemsList);
    outStream.flush();
    outStream.close();
  }
View Full Code Here

TOP

Related Classes of org.atc.tools.ant.writers.ItemWriter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.