Package com.objfac.prebop

Examples of com.objfac.prebop.Preprocessor


    this.vars.put("oem.name", oemName != null ? oemName : "none");
    this.vars.put("eclipse.version", eclipseTargetVersion.toString());
  }
 
  public void preprocess(File dir) throws PreprocessorError {
    new Preprocessor().preprocess(
      dir,      // in
      dir,      // out
      vars,      // expression variables
      NO_EXCLUDES,  // exclude
      TYPE_MAP,    // typeMap,
View Full Code Here


      true      // merge
    );
  }
 
  public void preprocessFile(File file) throws PreprocessorError, IOException {
    new Preprocessor().preprocessFile(
      file,      // in
      file,      // out
      vars,      // expression variables
      NO_EXCLUDES,  // exclude
      TYPE_MAP,    // typeMap,
View Full Code Here

   * @see org.apache.tools.ant.Task#execute()
   */
  public void execute() throws BuildException {
    verifyAttributes();
    String out = fOut;
    Preprocessor preprocessor = new Preprocessor();
    try {
      int processed = preprocessor.preprocess(
        fInDirFile, fOutDirFile,
        fVarMap, fExcludeSet, fTypeMap,
        "replace".equals(out), "merge".equals(out));
      int modified = preprocessor.getModCount();
      log("modified "+modified+" of "+processed+" files");
    } catch (PreprocessorError e) {
      String msg;
      Throwable t = e.getCause();
      if (t != null) {
View Full Code Here

TOP

Related Classes of com.objfac.prebop.Preprocessor

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.