org.mmbase.util
Class BuilderList

java.lang.Object
  extended by org.mmbase.util.BuilderList

public class BuilderList
extends Object

Gives an xml-representation of a dir structure with builders Used by the build script to create documentation for builders.

Since:
mmbase 1.6
Version:
$Id: BuilderList.java 34900 2009-05-01 16:29:42Z michiel $
Author:
Gerard van Enk, Pierre van Rooden

Constructor Summary
BuilderList()
           
 
Method Summary
(package private)  void listBuilders(ResourceLoader config, Writer writer)
          Lists all builders within a given path, including builders in sub-paths
static void main(String[] args)
          Main method can be called from an Ant build file and will return the xml with a listing of all the builders
 void write(Document doc, StreamResult result)
          Generates the document and writes it to the result object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuilderList

public BuilderList()
Method Detail

write

public void write(Document doc,
                  StreamResult result)
           throws TransformerException
Generates the document and writes it to the result object.

Parameters:
result - the StreamResult object where to store the configuration'
Throws:
TransformerException

listBuilders

void listBuilders(ResourceLoader config,
                  Writer writer)
            throws IOException
Lists all builders within a given path, including builders in sub-paths

Parameters:
ipath - the path to start searching. The path need be closed with a File.seperator character.
Throws:
IOException

main

public static void main(String[] args)
                 throws UnsupportedEncodingException,
                        IOException
Main method can be called from an Ant build file and will return the xml with a listing of all the builders

Parameters:
args - base dir to start with, it's possible to use more than one dir seperated by ;
Throws:
UnsupportedEncodingException
IOException


MMBase 2.0-SNAPSHOT - null