Albirew/tachiyomi
Archivé
1
0
Bifurcation 0

Maybe fix license task for Windows

Cette révision appartient à :
arkon 2020-06-07 16:10:43 -04:00
Parent 31015504f4
révision ec9d592cf1

Voir le fichier

@ -29,6 +29,14 @@ ext {
df.setTimeZone(TimeZone.getTimeZone("UTC"))
return df.format(new Date())
}
getGradleWrapper = {
if (System.properties['os.name'].toLowerCase().contains('windows')) {
return '../gradlew.bat'
} else {
return '../gradlew'
}
}
}
licenseReport {
@ -312,13 +320,13 @@ task copyResources(type: Copy) {
task licenseReportPreBuild(type: Exec) {
switch (getGradle().getStartParameter().getTaskRequests().toString()) {
case ~/.*Standard.*/:
commandLine '../gradlew', 'licenseStandardReleaseReport'
commandLine getGradleWrapper(), 'licenseStandardReleaseReport'
break
case ~/.*Fdroid.*/:
commandLine '../gradlew', 'licenseFdroidReleaseReport'
commandLine getGradleWrapper(), 'licenseFdroidReleaseReport'
break
case ~/.*Dev.*/:
commandLine '../gradlew', 'licenseDevReleaseReport'
commandLine getGradleWrapper(), 'licenseDevReleaseReport'
break
}
}