summaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-09-11 11:46:45 -0300
committerHugo Lima <hugo.lima@openbossa.org>2009-09-11 11:46:45 -0300
commit49e15b561187670f6c4314e10929903393d444b1 (patch)
treea935b54e309fb23ca936e662cf4d5928da1321c7 /main.cpp
parent17dd519767f2a877457f723f166a90119e2ca310 (diff)
downloadgeneratorrunner-49e15b561187670f6c4314e10929903393d444b1.tar.gz
generatorrunner-49e15b561187670f6c4314e10929903393d444b1.tar.xz
generatorrunner-49e15b561187670f6c4314e10929903393d444b1.zip
Write logs in the outputdirectory instead of the current working directory.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index 33b598a..d4858ce 100644
--- a/main.cpp
+++ b/main.cpp
@@ -159,8 +159,10 @@ int main(int argc, char *argv[])
}
}
+ QString outputDirectory = args.contains("output-directory") ? args["output-directory"] : "out";
// Create and set-up API Extractor
ApiExtractor extractor;
+ extractor.setLogDirectory(outputDirectory);
if (args.contains("silent")) {
extractor.setSilent(true);
@@ -198,8 +200,6 @@ int main(int argc, char *argv[])
return EXIT_FAILURE;
}
-
- QString outputDirectory = args.contains("output-directory") ? args["output-directory"] : "out";
foreach (Generator* g, generators) {
g->setOutputDirectory(outputDirectory);
g->setLicenseComment(licenseComment);