Examples of VelocityMetadata


Examples of org.apache.oodt.cas.pge.writers.VelocityMetadata

      .getLogger(VelocityConfigFileWriterTest.class.getName());

  public void testCreateConfigFile() throws IOException {
    URL url = this.getClass().getResource("/test-config.vm");
    VelocityConfigFileWriter vcfw = new VelocityConfigFileWriter();
    VelocityMetadata metadata = new VelocityMetadata(new Metadata());
    metadata.addMetadata("name", "Chris");
    metadata.addMetadata("name", "Paul");
    metadata.addMetadata("conference", "ApacheCon");
    File config = File.createTempFile("config", ".out");
    try {
      vcfw.generateFile(config.toString(), metadata, LOG, url.getFile());
    } catch (Exception e) {
      e.printStackTrace();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.