-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.18: extract JBR with
tar -xzf
on Mac and Linux
- Loading branch information
1 parent
74e1bb3
commit 90f1a8c
Showing
6 changed files
with
135 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,30 @@ | ||
package de.itemis.mps.gradle.downloadJBR | ||
|
||
import org.apache.tools.ant.taskdefs.condition.Os | ||
import org.gradle.api.DefaultTask | ||
import org.gradle.api.artifacts.Configuration | ||
import org.gradle.api.file.DirectoryProperty | ||
import org.gradle.api.file.RegularFileProperty | ||
import org.gradle.api.tasks.* | ||
import java.io.File | ||
|
||
open class DownloadJbrForPlatform : DefaultTask() { | ||
|
||
@OutputDirectory | ||
lateinit var jbrDir : File | ||
@get:Internal | ||
internal val jbrDirProperty: DirectoryProperty = project.objects.directoryProperty() | ||
|
||
@OutputFile | ||
lateinit var javaExecutable: File | ||
} | ||
@get:Internal | ||
var jbrDir : File | ||
get() = jbrDirProperty.get().asFile | ||
set(value) { | ||
jbrDirProperty.set(value) | ||
} | ||
|
||
@get:Internal | ||
internal val javaExecutableProperty: RegularFileProperty = project.objects.fileProperty() | ||
|
||
@get:Internal | ||
var javaExecutable: File | ||
get() = javaExecutableProperty.get().asFile | ||
set(value) { | ||
javaExecutableProperty.set(value) | ||
} | ||
} |