mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
gradle: allow to define TeaVM properties from gradle command line
This commit is contained in:
parent
b927b28e7d
commit
09cdc63267
|
@ -103,13 +103,14 @@ class TeaVMBaseExtensionImpl implements TeaVMBaseExtension {
|
|||
|
||||
@Override
|
||||
public Provider<String> property(String name) {
|
||||
return properties.map(p -> {
|
||||
var gradleName = "teavm." + name;
|
||||
return project.getProviders().systemProperty(gradleName).orElse(properties.map(p -> {
|
||||
var result = p.getProperty(name);
|
||||
if (result != null) {
|
||||
return result;
|
||||
}
|
||||
return project.getProviders().gradleProperty("teavm." + name).getOrElse(null);
|
||||
});
|
||||
return project.getRootProject().getProviders().gradleProperty(gradleName).getOrElse(null);
|
||||
}));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue
Block a user