Accounting for project names containing spaces.
This commit is contained in:
parent
f604e5c0dc
commit
22d283a998
1 changed files with 8 additions and 7 deletions
|
|
@ -1,18 +1,19 @@
|
|||
// Build and export files
|
||||
def doBuild(apps) {
|
||||
for (appInfo in apps ) {
|
||||
build = appInfo[0]
|
||||
project = appInfo[1]
|
||||
variants = appInfo[2]
|
||||
exportpath = appInfo[3]
|
||||
(build, project, variants, exportpath) = appInfo
|
||||
if (build) {
|
||||
for (build_variant in variants) {
|
||||
retry(3) { // Eclipse occasionally raises exceptions (rather than the builds failing)
|
||||
if (isUnix()) {
|
||||
sh "${BUILD_COMMAND} -build ${project}/${build_variant}"
|
||||
sh """
|
||||
"${BUILD_COMMAND}" -build "${project}/${build_variant}"
|
||||
"""
|
||||
}
|
||||
else {
|
||||
bat "%BUILD_COMMAND% -build ${project}/${build_variant}"
|
||||
bat """
|
||||
"%BUILD_COMMAND%" -build "${project}\\${build_variant}"
|
||||
"""
|
||||
}
|
||||
}
|
||||
if (exportpath) {
|
||||
|
|
@ -39,4 +40,4 @@ def doBuild(apps) {
|
|||
}
|
||||
}
|
||||
|
||||
return this;
|
||||
return this;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue