diff --git a/build.allScripts/build.xml b/build.allScripts/build.xml deleted file mode 100644 index e3395046b..000000000 --- a/build.allScripts/build.xml +++ /dev/null @@ -1,193 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - mps.build.number=${mps.build.number}${line.separator}mps.date=${mps.date}${line.separator}mps.build.vcs.number=${mps.build.vcs.number}${line.separator}mps.teamcity.buildConfName=${mps.teamcity.buildConfName}${line.separator}mps.idea.platform.build.number=${mps.idea.platform.build.number}${line.separator}mps.mps.build.counter=${mps.mps.build.counter}${line.separator}mpsBootstrapCore.version=${mpsBootstrapCore.version} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/build.gradle b/build.gradle index 2cf39533a..88c2e5985 100644 --- a/build.gradle +++ b/build.gradle @@ -208,10 +208,11 @@ ext.extensions_home = '-Dextensions.home=' + rootDir // ___________________ utilities ___________________ File scriptFile(String relativePath) { - new File("$rootDir/build/patched/$relativePath") + new File("$rootDir/build/generated/$relativePath") } -def defaultScriptArgs = [mps_home, build_dir, artifacts_dir, ext.buildDate, ext.pluginVersion] +def defaultScriptArgs = [mps_home, build_dir, artifacts_dir, ext.buildDate, ext.pluginVersion, + '-Dbuild.jna.library.path=' + new File(mpsHomeDir, 'lib/jna/' + System.getProperty('os.arch'))] afterEvaluate { project.ext["itemis.mps.gradle.ant.defaultJavaExecutable"] = tasks.getByName('downloadJbr').javaExecutable @@ -251,30 +252,11 @@ task resolved_diagram_dependencies(type: Copy) { } } -def build_allScripts_unpatched = tasks.register('build_allScripts_unpatched', BuildLanguages) { +tasks.register('build_allScripts', BuildLanguages) { dependsOn 'downloadJbr', resolveMps, copyModelApi, resolved_diagram_dependencies script "$rootDir/scripts/build.xml" } -// Patch JNA path in generated build scripts until https://github.com/JetBrains/MPS/pull/71 is fixed -def patch_allScripts = tasks.register('patch_allScripts', Copy) { - dependsOn build_allScripts_unpatched - from 'build/generated' - into 'build/patched' - - def isAarch64 = System.getProperty('os.arch') == 'aarch64' - def jnaArch = isAarch64 ? 'aarch64' : 'amd64' - - filter { - it.replace('"-Djna.boot.library.path=${artifacts.mps}/lib/jna"', - '"-Djna.boot.library.path=${artifacts.mps}/lib/jna/' + jnaArch + '"') - } -} - -task build_allScripts { - dependsOn patch_allScripts -} - task copyChangelog(type: Copy) { from "$rootDir/code/solutions/de.itemis.mps.extensions.changelog/source_gen/de/itemis/mps/extensions/changelog" into "$rootDir"