Package com.puppetlabs.geppetto.validation.runner

Examples of com.puppetlabs.geppetto.validation.runner.IEncodingProvider


    if(moduleLocations.size() == 1 && getModulesDir().equals(moduleLocations.iterator().next()))
      options.setFileType(FileType.MODULE_ROOT);
    else
      options.setFileType(FileType.PUPPET_ROOT);
    options.setPlatformURI(PuppetTarget.forComplianceLevel(complianceLevel, false).getPlatformURI());
    options.setEncodingProvider(new IEncodingProvider() {
      public String getEncoding(URI file) {
        return UTF_8.name();
      }
    });
View Full Code Here


  }

  protected ValidationOptions getValidationOptions(ComplianceLevel complianceLevel) {
    ValidationOptions options = new ValidationOptions();
    options.setPlatformURI(PuppetTarget.forComplianceLevel(complianceLevel, false).getPlatformURI());
    options.setEncodingProvider(new IEncodingProvider() {
      public String getEncoding(URI file) {
        return "UTF-8";
      }
    });
    options.setProblemsAdvisor(ValidationAdvisor.create(complianceLevel, new DefaultPotentialProblemsAdvisor()));
View Full Code Here

  }

  protected ValidationOptions getValidationOptions(ComplianceLevel complianceLevel) {
    ValidationOptions options = new ValidationOptions();
    options.setPlatformURI(PuppetTarget.forComplianceLevel(complianceLevel, false).getPlatformURI());
    options.setEncodingProvider(new IEncodingProvider() {
      public String getEncoding(URI file) {
        return "UTF-8";
      }
    });
    options.setProblemsAdvisor(ValidationAdvisor.create(complianceLevel, new DefaultPotentialProblemsAdvisor()));
View Full Code Here

TOP

Related Classes of com.puppetlabs.geppetto.validation.runner.IEncodingProvider

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.