All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fit.WikiRunner Maven / Gradle / Ivy

There is a newer version: 20241026
Show newest version
// Modified or written by Object Mentor, Inc. for inclusion with FitNesse.
// Copyright (c) 2002 Cunningham & Cunningham, Inc.
// Released under the terms of the GNU General Public License version 2 or later.
package fit;

// Copyright (c) 2002 Cunningham & Cunningham, Inc.
// Released under the terms of the GNU General Public License version 2 or later.


public class WikiRunner extends FileRunner {

  public static void main(String[] argv) {
    new WikiRunner().run(argv);
  }

  @Override
  public void process() {
    String[] tags = {"wiki", "table", "tr", "td"};
    try {
      tables = new Parse(input, tags);    // look for wiki tag enclosing tables
      fixture.doTables(tables.parts);     // only do tables within that tag
    } catch (Exception e) {
      exception(e);
    }
    tables.print(output);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy