List of usage examples for com.google.gwt.dev.javac StandardGeneratorContext StandardGeneratorContext
public StandardGeneratorContext(CompilationState compilationState, ModuleDef module, File genDir, ArtifactSet allGeneratedArtifacts, boolean isProdMode)
From source file:com.google.gwt.dev.javac.testing.GeneratorContextBuilder.java
License:Apache License
/** * Returns a newly created {@link GeneratorContext} based on the sources * added to this builder./*from w ww .j a va2s. c o m*/ */ public GeneratorContext buildGeneratorContext() { // TODO: Add ability to add property values later and add them to this // context. return new StandardGeneratorContext(buildCompilationState(), null, null, null, false); }
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; }