Examples of ModuleValidator


Examples of com.redhat.ceylon.compiler.typechecker.analyzer.ModuleValidator

        Module languageModule = context.getModules().getLanguageModule();
        if (languageModule.getVersion() == null) {
            languageModule.setVersion(LANGUAGE_MODULE_VERSION);
        }

        final ModuleValidator moduleValidator = new ModuleValidator(context, phasedUnits);
        if (verifyDependencies) {
            moduleValidator.verifyModuleDependencyTree();
        }
        phasedUnitsOfDependencies = moduleValidator.getPhasedUnitsOfDependencies();

        for (PhasedUnit pu : listOfUnits) {
            pu.validateTree();
            pu.scanDeclarations();
        }
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.analyzer.ModuleValidator

    }

    @Override
    public void resolveModuleDependencies(PhasedUnits phasedUnits) {
        com.redhat.ceylon.compiler.typechecker.context.Context ceylonContext = LanguageCompiler.getCeylonContextInstance(context);
        ModuleValidator validator = new ModuleValidator(ceylonContext, phasedUnits);
        validator.verifyModuleDependencyTree();
    }
View Full Code Here

Examples of com.subgraph.vega.impl.scanner.modules.scripting.ModuleValidator

    if(!moduleCompiler.compile(scriptFile) || scriptFile.getCompileStatus() != CompileStatus.COMPILE_SUCCEEDED) {
      logger.warning(scriptFile.getCompileFailureMessage());
      return null;
    }
     
    final ModuleValidator validator = validateModule(scriptFile.getCompiledScript(), scriptFile.getPath());
    if(validator == null)
      return null;
     
    return new ScriptedModule(scriptFile, "Test Modules", validator);
  }
View Full Code Here

Examples of com.subgraph.vega.impl.scanner.modules.scripting.ModuleValidator

     
    return new ScriptedModule(scriptFile, "Test Modules", validator);
  }
 
  private ModuleValidator validateModule(Scriptable module, String modulePath) {
    final ModuleValidator validator = new ModuleValidator(module);
    try {
      validator.validate();
      return validator;
    } catch (ModuleValidationException e) {
      logger.warning("Failed to validate test module "+ modulePath +" :"+ e.getMessage());
      return null;
    }
View Full Code Here

Examples of org.openbravo.service.system.ModuleValidator

  /**
   * Performs module validation using the {@link ModuleValidator}.
   */
  public void testModulesValidation() {
    setUserContext("0");
    final ModuleValidator moduleValidator = new ModuleValidator();
    final SystemValidationResult result = moduleValidator.validate();
    printResult(result);
  }
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.