Package com.google.gwt.dev

Examples of com.google.gwt.dev.CompilerOptionsImpl


        .getConditions().add(new ConditionWhenTypeEndsWith("Messages"));
    module.addRule(localeMessageGenerateRule);
    LibraryGroup libraryGroup = LibraryGroupTest.buildVariedPropertyGeneratorLibraryGroup(
        Sets.newHashSet("com.google.ChromeMessages"),
        Sets.newHashSet("com.google.WindowShim"));
    PrecompileTaskOptions options = new CompilerOptionsImpl();
    options.setFinalProperties(module.getProperties());
    compilerContext = new CompilerContext.Builder().libraryGroup(libraryGroup)
        .libraryWriter(libraryWriter).module(module).options(options).build();
    finishSetUpWithCompilerContext();

    // Analyzes properties and generators in the library group and watches output in the generator
View Full Code Here


    String benchmark = "hello";
    String module = "com.google.gwt.sample.hello.Hello";

    File work = Utility.makeTemporaryDirectory(null, benchmark + "work");
    try {
      CompilerOptionsImpl options = new CompilerOptionsImpl();
      options.addModuleName(module);
      options.setWarDir(new File(work, "war"));
      options.setExtraDir(new File(work, "extra"));
      options.setOptimizationLevel(optimizeLevel);
      PrintWriterTreeLogger logger = new PrintWriterTreeLogger();
      logger.setMaxDetail(TreeLogger.ERROR);
      new com.google.gwt.dev.Compiler(options).run(logger);
      // Change parentDir for cached/pre-built reports
      String parentDir = options.getExtraDir() + "/" + benchmark;
      for (Map<String, SimpleSymbolData> symbolDataBySymbolName :
          loadSymbolMaps(new File(parentDir + "/symbolMaps/"))) {
        assertTrue(!symbolDataBySymbolName.isEmpty());
        assertNotNull(symbolDataBySymbolName.get(JSE_METHOD));
        assertTrue(symbolDataBySymbolName.get(JSE_METHOD).isMethod());
View Full Code Here

TOP

Related Classes of com.google.gwt.dev.CompilerOptionsImpl

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.