Merge pull request #496 from corda/clint-fixdocsubuntu

Fixed docsite building on Ubuntu by explicitly calling bash.
This commit is contained in:
Clinton 2017-04-04 10:32:48 +01:00 committed by GitHub
commit da92806b99

View File

@ -25,14 +25,14 @@ task apidocs(dependsOn: ['dokka', 'dokkaJavadoc'])
task makeDocs(type: Exec, dependsOn: ['installDocsiteRequirements']) {
// TODO: Non-msys Windows script
commandLine 'cmd', '/c', 'sh make-docsite.sh' // Windows
commandLine 'sh', './make-docsite.sh' // Linux
commandLine 'cmd', '/c', 'bash make-docsite.sh' // Windows
commandLine 'bash', './make-docsite.sh' // Linux
}
task installDocsiteRequirements(type: Exec) {
// TODO: Non-msys Windows script
commandLine 'cmd', '/c', 'sh install-docsite-requirements.sh' // Windows
commandLine 'sh', './install-docsite-requirements.sh' // Linux
commandLine 'cmd', '/c', 'bash install-docsite-requirements.sh' // Windows
commandLine 'bash', './install-docsite-requirements.sh' // Linux
}
apidocs.shouldRunAfter makeDocs
apidocs.shouldRunAfter makeDocs