01: /*
02: * UmlGraph class diagram testing framework
03: *
04: * Contibuted by Andrea Aime
05: * (C) Copyright 2005 Diomidis Spinellis
06: *
07: * Permission to use, copy, and distribute this software and its
08: * documentation for any purpose and without fee is hereby granted,
09: * provided that the above copyright notice appear in all copies and that
10: * both that copyright notice and this permission notice appear in
11: * supporting documentation.
12: *
13: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
14: * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
15: * MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
16: *
17: * $Id$
18: *
19: */
20:
21: package org.umlgraph.test;
22:
23: import java.io.File;
24: import java.io.PrintWriter;
25:
26: public class RunDoc {
27:
28: static String sourcesFolder = "src";
29:
30: static String docFolder = "javadoc";
31:
32: static PrintWriter pw = new PrintWriter(System.out);
33:
34: public static void main(String[] args) {
35: File outFolder = new File(docFolder);
36: if (!outFolder.exists())
37: outFolder.mkdirs();
38: String[] options = new String[] { "-docletpath", "build",
39: "-private", "-d", docFolder, "-sourcepath",
40: sourcesFolder, "-subpackages", "gr.spinellis" };
41: runDoclet(options);
42: }
43:
44: private static void runDoclet(String[] options) {
45: com.sun.tools.javadoc.Main.execute("UMLGraph test", pw, pw, pw,
46: "org.umlgraph.doclet.UmlGraphDoc", options);
47: }
48:
49: }
|