Don't generate XML for docs, updated ThemeDescriptor capp template

This commit is contained in:
Aparajita Fishman
2011-05-11 12:18:21 -04:00
parent 17dc96ad2f
commit d2407d1c2a
2 changed files with 25 additions and 8 deletions
+1 -1
View File
@@ -1280,7 +1280,7 @@ MAN_LINKS = NO
# generate an XML file that captures the structure of
# the code including all documentation.
GENERATE_XML = YES
GENERATE_XML = NO
# The XML_OUTPUT tag is used to specify where the XML pages will be put.
# If a relative path is entered the value of OUTPUT_DIRECTORY will be
@@ -3,14 +3,30 @@
* __project.name__
*
* Created by __user.name__ on __project.date__.
*
* Copyright __project.year__, __organization.name__. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
//===========================================================
// DO NOT REMOVE
//===========================================================
var ENV = require("system").env,
var SYS = require("system"),
ENV = SYS.env,
FILE = require("file"),
OS = require("os");
@@ -38,9 +54,9 @@ var buildDir = "Build";
var stream = require("narwhal/term").stream,
JAKE = require("jake"),
task = JAKE.task,
FileList = JAKE.FileList,
CLEAN = require("jake/clean").CLEAN,
CLOBBER = require("jake/clean").CLOBBER,
FileList = JAKE.FileList,
blend = require("cappuccino/jake").blend,
configuration = ENV["CONFIG"] || ENV["CONFIGURATION"] || ENV["c"] || "Debug",
productName = "__project.nameasidentifier__",
@@ -91,7 +107,8 @@ task ("test-release", ["release"], function()
});
CLEAN.include(buildPath);
CLOBBER.include(buildDir);
CLOBBER.include(FILE.join(buildDir, "Debug"))
.include(FILE.join(buildDir, "Release"));
task ("help", function()
{
@@ -101,8 +118,8 @@ task ("help", function()
colorPrint("__project.name__ - Theme Blend", "bold+green");
colorPrint("--------------------------------------------------------------------------", "bold+green");
describeTask(app, "debug", "Builds a debug version at " + FILE.join(buildDir, "Debug"));
describeTask(app, "release", "Builds a release version at " + FILE.join(buildDir, "Release"));
describeTask(app, "debug", "Builds a debug version at " + FILE.join(buildDir, "Debug", productName));
describeTask(app, "release", "Builds a release version at " + FILE.join(buildDir, "Release", productName));
describeTask(app, "all", "Builds a debug and release version");
describeTask(app, "test", "Builds a debug version, symlinks to the installed BlendKit framework,\nand opens the theme showcase in the default browser");
describeTask(app, "test-release", "Builds a release version, symlinks to the installed BlendKit framework,\nand opens the theme showcase in the default browser");
@@ -123,11 +140,11 @@ var describeTask = function(application, task, description)
var symlinkBlendKit = function(destinationPath)
{
if (FILE.isDirectory(destinationPath))
if (FILE.exists(destinationPath))
return;
var blendKitPath = null,
path = FILE.join(require("system").prefix, "packages", "cappuccino", "Frameworks", "BlendKit");
path = FILE.join(SYS.prefix, "packages", "cappuccino", "Frameworks", "BlendKit");
if (FILE.isDirectory(path))
blendKitPath = path;