Permalink
Browse files

create test & output dirs if they don't already exist

  • Loading branch information...
zzo committed Nov 9, 2011
1 parent 4d62409 commit 74cd01702abc973a4f74a26d600b22a04e9c82d3
Showing 1,289 changed files with 228,055 additions and 1 deletion.
@@ -82,9 +82,19 @@ Create: function(hub) {
// Web paths and full paths...
config.outputDirWeb = config.outputDir;
config.outputDir = path.join(config.docRoot, config.outputDir);
+ try {
+ fs.statSync(config.outputDir);
+ } catch(e) {
+ fs.mkdirSync(config.outputDir, 0777)
+ }
config.testDirWeb = config.testDir;
config.testDir = path.join(config.docRoot, config.testDir);
+ try {
+ fs.statSync(config.testDir);
+ } catch(e) {
+ fs.mkdirSync(config.testDir, 0777)
+ }
// Find Java executable
if (process.env.JAVA_HOME) {

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 74cd017

Please sign in to comment.