Browse Source

Set a few useful environment variables for jpackage task process

pull/2336/head
Sebastian Kürten 2 years ago
parent
commit
45a0e71345
  1. 4
      gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/tasks/AbstractJPackageTask.kt

4
gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/tasks/AbstractJPackageTask.kt

@ -511,6 +511,10 @@ abstract class AbstractJPackageTask @Inject constructor(
override fun jvmToolEnvironment(): MutableMap<String, String> = override fun jvmToolEnvironment(): MutableMap<String, String> =
super.jvmToolEnvironment().apply { super.jvmToolEnvironment().apply {
put("GRADLE_PROJECT_DIR", "${project.projectDir}")
put("GRADLE_ROOT_PROJECT_DIR", "${project.rootProject.projectDir}")
put("GRADLE_BUILD_DIR", "${project.buildDir}")
put("GRADLE_ROOT_BUILD_DIR", "${project.rootProject.buildDir}")
if (currentOS == OS.Windows) { if (currentOS == OS.Windows) {
val wixDir = wixToolsetDir.ioFile val wixDir = wixToolsetDir.ioFile
val wixPath = wixDir.absolutePath val wixPath = wixDir.absolutePath

Loading…
Cancel
Save