Template = imports.JsTemplate.Template.Template;
-Options = imports.Options.Options;
+
Parser = imports.Parser.Parser;
TokenReader = imports.TokenReader.TokenReader;
// should not realy be here -- or anywhere...??
-
+Options = false; // refer to this everywhere!
BuildDocs = {
srcFiles : [],
- build : function ()
+
+ build : function (opts)
{
-
+ Options = opts;
Options.init();
-
-
Options.LOG.inform("JsDoc Toolkit main() running at "+new Date()+".");
//Options.LOG.inform("With options: ");
- if (!File.isDirectory(Options.cacheDirectory)) {
+ if (Options.cacheDirectory.length && !File.isDirectory(Options.cacheDirectory)) {
File.mkdir(Options.cacheDirectory)
}
Parser.finish();
- }
+ },
},
- publishJSON = function(file, data)
+ publishJSON : function(file, data)
{
// what we need to output to be usefull...
// a) props..