Package br.com.caelum.tubaina.resources

Examples of br.com.caelum.tubaina.resources.ResourceManipulator


      File resources = new File(chapdir, "resources/");
      resources.mkdir();

      File logo = new File(templateDir, "html/logo.png");
      ResourceManipulator manipulator = new HtmlResourceManipulator(resources, indexes, logo);

      for (Resource r : c.getResources()) {
        try {
          r.copyTo(manipulator);
        } catch (TubainaException e) {
View Full Code Here


      stream.println("\\chapter{\\answerBooklet}");
      stream.close();
    }
    for (Chapter c : b.getChapters()) {
     
      ResourceManipulator manipulator = new LatexResourceManipulator(directory, answerFile, parser, noAnswer);
     
      for (Resource r : c.getResources()) {

        try {
          r.copyTo(manipulator);
View Full Code Here

    Map<String, Integer> indexes = new TreeMap<String, Integer>(String.CASE_INSENSITIVE_ORDER);
   
    //TODO: remove this asap too
    File logo = new File(templateDir, "logo.png");
   
    ResourceManipulator manipulator = resourceManipulatorFactory.build(this.currentFolder, indexes, logo);   

    for (Resource r : resources) {
      r.copyTo(manipulator);
    }
    return this;
View Full Code Here

      stream.println("\\chapter{\\answerBooklet}");
      stream.close();
    }
   
    List<Resource> resources = retrieveResources(b);
    ResourceManipulator manipulator = new LatexResourceManipulator(directory, answerFile, noAnswer);
    copyResources(resources, manipulator);
  }
View Full Code Here

TOP

Related Classes of br.com.caelum.tubaina.resources.ResourceManipulator

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.