mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-04 10:09:42 +00:00
build(android): avoid xmake task in local environment
This commit is contained in:
1 parent
3418c9e6af
commit
e6054ef41a
4 files changed
+37
-32
No files matched your search
+1
-2
@@ -71,8 +71,8 @@ ext {
|
||||
destinationFolder = project.rootDir.absolutePath + "/java/com.sap.sailing.www/apps/"
|
||||
}
|
||||
|
||||
apply plugin: "org.ajoberstar.grgit"
|
||||
if (project.hasProperty("xmake")) {
|
||||
apply plugin: "org.ajoberstar.grgit"
|
||||
task wrapper(type: Wrapper) {
|
||||
distributionUrl "${sapGradleDistBaseUrl}/${sapGradleVersion}/gradle-${sapGradleVersion}-all.zip"
|
||||
System.setProperty("http.proxyHost", sapProxyHost)
|
||||
@@ -83,4 +83,3 @@ if (project.hasProperty("xmake")) {
|
||||
System.setProperty("https.nonProxyHosts", sapNonProxyHosts)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,16 +95,18 @@ dependencies {
|
||||
}
|
||||
|
||||
// Custom tasks
|
||||
preBuild.doLast {
|
||||
// save the combined build info into assets/build.info file
|
||||
def repo = org.ajoberstar.grgit.Grgit.open(dir: System.env.XMAKE_PROJECTDIR)
|
||||
def result_line = "${repo.branch.current().getName()}-${repo.head().abbreviatedId} (${new Date().toString()})\n"
|
||||
def assetsDir = android.sourceSets.main.assets.srcDirs.toArray()[1]
|
||||
delete(assetsDir)
|
||||
mkdir(assetsDir)
|
||||
def buildInfoFile = new File(assetsDir, 'build_gradle.info').getAbsolutePath()
|
||||
new File(buildInfoFile).write(result_line)
|
||||
repo.close()
|
||||
if (project.hasProperty("xmake")) {
|
||||
preBuild.doLast {
|
||||
// save the combined build info into assets/build.info file
|
||||
def repo = org.ajoberstar.grgit.Grgit.open(dir: System.env.XMAKE_PROJECTDIR)
|
||||
def result_line = "${repo.branch.current().getName()}-${repo.head().abbreviatedId} (${new Date().toString()})\n"
|
||||
def assetsDir = android.sourceSets.main.assets.srcDirs.toArray()[1]
|
||||
delete(assetsDir)
|
||||
mkdir(assetsDir)
|
||||
def buildInfoFile = new File(assetsDir, 'build_gradle.info').getAbsolutePath()
|
||||
new File(buildInfoFile).write(result_line)
|
||||
repo.close()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -99,16 +99,18 @@ dependencies {
|
||||
}
|
||||
|
||||
// Custom tasks
|
||||
preBuild.doLast {
|
||||
// save the combined build info into assets/build.info file
|
||||
def repo = org.ajoberstar.grgit.Grgit.open(dir: System.env.XMAKE_PROJECTDIR)
|
||||
def result_line = "${repo.branch.current().getName()}-${repo.head().abbreviatedId} (${new Date().toString()})\n"
|
||||
def assetsDir = android.sourceSets.main.assets.srcDirs.toArray()[1]
|
||||
delete(assetsDir)
|
||||
mkdir(assetsDir)
|
||||
def buildInfoFile = new File(assetsDir, 'build_gradle.info').getAbsolutePath()
|
||||
new File(buildInfoFile).write(result_line)
|
||||
repo.close()
|
||||
if (project.hasProperty("xmake")) {
|
||||
preBuild.doLast {
|
||||
// save the combined build info into assets/build.info file
|
||||
def repo = org.ajoberstar.grgit.Grgit.open(dir: System.env.XMAKE_PROJECTDIR)
|
||||
def result_line = "${repo.branch.current().getName()}-${repo.head().abbreviatedId} (${new Date().toString()})\n"
|
||||
def assetsDir = android.sourceSets.main.assets.srcDirs.toArray()[1]
|
||||
delete(assetsDir)
|
||||
mkdir(assetsDir)
|
||||
def buildInfoFile = new File(assetsDir, 'build_gradle.info').getAbsolutePath()
|
||||
new File(buildInfoFile).write(result_line)
|
||||
repo.close()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -100,16 +100,18 @@ dependencies {
|
||||
}
|
||||
|
||||
// Custom tasks
|
||||
preBuild.doLast {
|
||||
// save the combined build info into assets/build.info file
|
||||
def repo = org.ajoberstar.grgit.Grgit.open(dir: System.env.XMAKE_PROJECTDIR)
|
||||
def result_line = "${repo.branch.current().getName()}-${repo.head().abbreviatedId} (${new Date().toString()})\n"
|
||||
def assetsDir = android.sourceSets.main.assets.srcDirs.toArray()[1]
|
||||
delete(assetsDir)
|
||||
mkdir(assetsDir)
|
||||
def buildInfoFile = new File(assetsDir, 'build_gradle.info').getAbsolutePath()
|
||||
new File(buildInfoFile).write(result_line)
|
||||
repo.close()
|
||||
if (project.hasProperty("xmake")) {
|
||||
preBuild.doLast {
|
||||
// save the combined build info into assets/build.info file
|
||||
def repo = org.ajoberstar.grgit.Grgit.open(dir: System.env.XMAKE_PROJECTDIR)
|
||||
def result_line = "${repo.branch.current().getName()}-${repo.head().abbreviatedId} (${new Date().toString()})\n"
|
||||
def assetsDir = android.sourceSets.main.assets.srcDirs.toArray()[1]
|
||||
delete(assetsDir)
|
||||
mkdir(assetsDir)
|
||||
def buildInfoFile = new File(assetsDir, 'build_gradle.info').getAbsolutePath()
|
||||
new File(buildInfoFile).write(result_line)
|
||||
repo.close()
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user