Example usage for com.google.gwt.dev.cfg ModuleDef getCompilationState

List of usage examples for com.google.gwt.dev.cfg ModuleDef getCompilationState

Introduction

In this page you can find the example usage for com.google.gwt.dev.cfg ModuleDef getCompilationState.

Prototype

public CompilationState getCompilationState(TreeLogger logger) throws UnableToCompleteException 

Source Link

Usage

From source file:org.hibernate.jsr303.tck.util.TckGeneratorTestUtils.java

License:Apache License

private static StandardGeneratorContext createGeneratorContext(String fullyQaulifiedModuleName,
        TreeLogger logger) throws UnableToCompleteException {
    ModuleDef module = ModuleDefLoader.loadFromClassPath(logger, fullyQaulifiedModuleName);
    File genDir = new File(System.getProperty("java.io.tmpdir"));

    ArtifactSet allGenreatedArtifacts = new ArtifactSet();
    boolean isProd = false;
    StandardGeneratorContext context = new StandardGeneratorContext(module.getCompilationState(logger), module,
            genDir, allGenreatedArtifacts, isProd);
    return context;
}