Examples of AbstractResource


Examples of org.springframework.core.io.AbstractResource

    return inputStream == null ? null : IOGroovyMethods.getText(inputStream);
  }

  protected AbstractResource getTemplateResource(String template) throws IOException {
    String name = "src/templates/scaffolding/" + template;
    AbstractResource templateFile = new FileSystemResource(new File(basedir, name).getAbsoluteFile());
    if (!templateFile.exists()) {
      templateFile = new FileSystemResource(new File(getPluginDir(), name).getAbsoluteFile());
    }

    return templateFile;
  }
View Full Code Here

Examples of org.springframework.core.io.AbstractResource

  }

  @Test
  public void testFirstFound() throws Exception {
    this.factory.setResolutionMethod(YamlProcessor.ResolutionMethod.FIRST_FOUND);
    this.factory.setResources(new AbstractResource() {
      @Override
      public String getDescription() {
        return "non-existent";
      }
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.