Package net.riccardocossu.autodoc.parsers

Examples of net.riccardocossu.autodoc.parsers.PackageParser


public class HtmlOutputPluginTest {

  @Test
  public void testOutput() {
    PackageParser parser = new PackageParser();
    PluginFactory factory = new PluginFactory();
    factory.registerPlugin(new JPAPlugin());
    PackageContainer pack = parser.parse(
        "net.riccardocossu.autodoc.test.model", factory);
    List<PackageContainer> packages = new ArrayList<PackageContainer>();
    packages.add(pack);
    HtmlOutputPlugin outPlugin = new HtmlOutputPlugin();
    outPlugin.process(packages, new File("/tmp"));
View Full Code Here


        log.error("Error including input plugin " + p, e);
      }
    }
    String[] packages = configuration.getStringArray(CONFIG_PACKAGES);
    log.info("Scanning packages: {}", (Object) packages);
    PackageParser parser = new PackageParser();
    List<PackageContainer> parsedPackages = new ArrayList<PackageContainer>();
    for (String p : packages) {
      PackageContainer pk = parser.parse(p, factory);
      parsedPackages.add(pk);
    }
    String confOutputDir = configuration.getString(CONFIG_BASE_OUTPUT_DIR);
    if (confOutputDir == null) {
      confOutputDir = System.getProperty("java.io.tmpdir");
View Full Code Here

TOP

Related Classes of net.riccardocossu.autodoc.parsers.PackageParser

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.