Skip to content

Commit

Permalink
Merge pull request #2558 from mbeddr/merge/mps20222
Browse files Browse the repository at this point in the history
Merge maintenance/mps20222 into maintenance/mps20223
  • Loading branch information
sergej-koscejev authored Oct 18, 2024
2 parents 59e9f3f + d89f763 commit ad2048f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
20 changes: 0 additions & 20 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,27 +30,7 @@ ext.artifactsDir = new File(rootDir, 'artifacts')
ext.ciBuild = project.findProperty("forceCI") ?: !project.findProperty('mpsHomeDir') && project.hasProperty("teamcity")

afterEvaluate {

ext["itemis.mps.gradle.ant.defaultJavaExecutable"] = tasks.getByName('downloadJbr').javaExecutable

def jdk_home = null

if (ext.has('java17_home')) {
jdk_home = ext.get('java17_home')
} else if (System.getenv('JB_JAVA17_HOME') != null) {
jdk_home = System.getenv('JB_JAVA17_HOME')
}

if(jdk_home != null) {
// Check JDK location
if (!new File(jdk_home, "lib").exists()) {
throw new GradleException("Unable to locate JDK home folder. Detected folder is: $jdk_home")
} else {
ext.jdk_home = jdk_home
logger.info 'Using JDK at {}', jdk_home
ext["itemis.mps.gradle.ant.defaultJavaExecutable"] = new File(jdk_home, 'bin/java')
}
}
}

def hasNonEmptyProperty(property) {
Expand Down
12 changes: 0 additions & 12 deletions subprojects/com.mbeddr/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,6 @@ task install() {

logger.info "skipresolve_mps: {}, mpsHomeDir: {}", ext.skipresolve_mps, ext.mpsHomeDir

// JDK_HOME required for adding tools.jar into classpath of the forked ant process
if (!hasProperty("jdk_home")) {
def java_home = System.properties['java.home']
def jdk_home = java_home
if (!file("$jdk_home/lib").exists()) {
throw new GradleException("Was not able to locate jdk home folder. Use 'jdk_home' project variable to specify JDK location explicitly. Current JAVA_HOME is: $java_home")
}
ext.jdk_home = jdk_home
}

logger.info "jdk_home: $jdk_home"

ext.artifactsDir = file(rootProject.projectDir.absolutePath + "/artifacts")

Map<String, Object> antSystemProperties = [
Expand Down

0 comments on commit ad2048f

Please sign in to comment.