Package org.concordion.api

Examples of org.concordion.api.Resource


  }

  private void copyResources() {
    for (Entry<String, Resource> resourceToCopy : resourceToCopyMap.entrySet()) {
      String sourcePath = resourceToCopy.getKey();
      Resource targetResource = resourceToCopy.getValue();
      try {
        InputStream inputStream = source.createInputStream(new Resource(sourcePath));
        target.copyTo(targetResource, inputStream);
      } catch (IOException e) {
        throw new RuntimeException("Failed to copy " + sourcePath + " to target " + targetResource, e);
      }
    }
View Full Code Here


       
        for (File file: folder.listFiles()){
          if (file.getName().endsWith(".js")){
              concordionExtender.withLinkedJavaScript(
                  basedir+file.getName(),
                  new Resource(basedir+file.getName()));
              continue;
          }
          if (file.getName().endsWith(".css")){
                concordionExtender.withLinkedCSS(basedir+file.getName(),
                      new Resource(basedir+file.getName()));
                continue;
          }
          concordionExtender.withResource(basedir+file.getName(),
                      new Resource(basedir+file.getName()));
        }
      }
View Full Code Here

TOP

Related Classes of org.concordion.api.Resource

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.