Package com.google.gxp.compiler.alerts

Examples of com.google.gxp.compiler.alerts.AlertSink


    files.addAll(gxpFiles);
    files.addAll(extraFiles());

    // compile
    CompilationSet compilationSet = getCompilationSetBuilder().build(files);
    AlertSink alertSink = createAlertSink();
    compilationSet.compile(alertSink, getAlertPolicy(), getOutputLanguages(),
                           getAllowedOutputPredicate(gxpFiles));
    return compilationSet;
  }
View Full Code Here


  protected void compileSchemas(FileRef... schemaFiles) {
    // build list of files to compile
    List<FileRef> files = Lists.newArrayList(schemaFiles);

    // compile schema files
    AlertSink alertSink = createAlertSink();
    new FileBackedSchemaFactory(alertSink, files);
  }
View Full Code Here

      if (config.getSourceFiles().isEmpty()) {
        stderr.append("gxpc: no input files\n");
        return 1;
      }
      AlertSink alertSink =  new PrintingAlertSink(config.getAlertPolicy(),
                                                   config.isVerboseEnabled(),
                                                   stderr);
      AlertCounter counter = new AlertCounter(alertSink, config.getAlertPolicy());
      new Compiler(config).call(counter);
      return (counter.getErrorCount() > 0) ? 1 : 0;
View Full Code Here

         SystemFileSystem.INSTANCE.parseFilename(System.getProperty("user.dir")));
  }

  public void execute() throws BuildException {
    configure();
    AlertSink alertSink = new LoggingAlertSink(getAlertPolicy(), this);
    AlertCounter counter = new AlertCounter(alertSink, getAlertPolicy());

    try {
      new Compiler(this).call(counter);
    } catch (InvalidConfigException e) {
View Full Code Here

         SystemFileSystem.INSTANCE.parseFilename(System.getProperty("user.dir")));
  }

  public void execute() throws BuildException {
    configure();
    AlertSink alertSink = new LoggingAlertSink(getAlertPolicy(), this);
    AlertCounter counter = new AlertCounter(alertSink, getAlertPolicy());

    try {
      log("Compiling "+sourceFiles.size()+" source files to "+outputDir.toFilename());
      new Compiler(this).call(counter);
View Full Code Here

    files.addAll(gxpFiles);
    files.addAll(extraFiles());

    // compile
    CompilationSet compilationSet = getCompilationSetBuilder().build(files);
    AlertSink alertSink = createAlertSink();
    compilationSet.compile(alertSink, getAlertPolicy(), getOutputLanguages(),
                           getAllowedOutputPredicate(gxpFiles));
    return compilationSet;
  }
View Full Code Here

  protected void compileSchemas(FileRef... schemaFiles) {
    // build list of files to compile
    List<FileRef> files = Lists.newArrayList(schemaFiles);

    // compile schema files
    AlertSink alertSink = createAlertSink();
    new FileBackedSchemaFactory(alertSink, files);
  }
View Full Code Here

TOP

Related Classes of com.google.gxp.compiler.alerts.AlertSink

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.