PocoDoc fixes

This commit is contained in:
Guenter Obiltschnig 2017-11-11 15:53:34 +01:00
parent b92e98b7df
commit c88f0f2731
3 changed files with 8 additions and 19 deletions

View File

@ -227,21 +227,10 @@ protected:
else
platformComp += ".unix";
std::string exec;
std::string opts;
std::string path;
bool usePipe;
try {
exec = config().getString(comp + ".exec");
opts = config().getString(comp + ".options");
path = config().getString(comp + ".path", "");
usePipe = config().getBool(comp + ".usePipe", false);
} catch (Poco::NotFoundException&) {
exec = config().getString(platformComp + ".exec");
opts = config().getString(platformComp + ".options");
path = config().getString(platformComp + ".path", "");
usePipe = config().getBool(platformComp + ".usePipe", false);
}
std::string exec = config().getString(platformComp + ".exec", config().getString(comp + ".exec", ""));
std::string opts = config().getString(platformComp + ".options", config().getString(comp + ".options", ""));
std::string path = config().getString(platformComp + ".path", config().getString(comp + ".path", ""));
bool usePipe = config().getBool(platformComp + ".usePipe", config().getBool(comp + ".usePipe", false));
std::string popts;
for (std::string::const_iterator it = opts.begin(); it != opts.end(); ++it)

View File

@ -753,24 +753,24 @@ task pocoDoc(type: Exec) {
if (os.windows) {
environment "Path", "$rootDir\\bin;$Path"
executable "PocoDoc/bin/PocoDoc.exe"
args "/config=$rootDir/PocoDoc/cfg/mkdoc.xml"
args "/config=$rootDir/PocoDoc/cfg/mkdoc-gradle.xml"
args "/config=$rootDir/PocoDoc/PocoDoc.ini"
}
if (os.linux) {
environment "LD_LIBRARY_PATH", "$rootDir/lib64:$LD_LIBRARY_PATH"
executable "PocoDoc/bin64/PocoDoc"
args "-config=$rootDir/PocoDoc/cfg/mkdoc.xml"
args "-config=$rootDir/PocoDoc/cfg/mkdoc-gradle.xml"
args "-config=$rootDir/PocoDoc/PocoDoc.ini"
}
if (os.macOsX) {
//FIXME environment "LD_LIBRARY_PATH", "$rootDir/bin:$LD_LIBRARY_PATH"
args "-config=$rootDir/PocoDoc/cfg/mkdoc.xml"
args "-config=$rootDir/PocoDoc/cfg/mkdoc-gradle.xml"
args "-config=$rootDir/PocoDoc/PocoDoc.ini"
}
// inputs.files(tasks.getByPath(':production').outputs.files)
inputs.files(executable)
inputs.files(fileTree("doc").filter { it.isFile() })
inputs.files(new File("$rootDir/PocoDoc/cfg/mkdoc.xml"))
inputs.files(new File("$rootDir/PocoDoc/cfg/mkdoc-gradle.xml"))
outputs.files(new File("releases/$version-all-doc/index.html"))
}
task zipDoc(type: Zip) {