mirror of
https://github.com/revanced/smali.git
synced 2025-05-29 20:20:12 +02:00
Fix how the classpath is set for JavaExec gradle tasks
This commit is contained in:
parent
40c48da564
commit
de3a5f95ae
@ -69,7 +69,7 @@ gradle.taskGraph.whenReady {
|
|||||||
}
|
}
|
||||||
|
|
||||||
task proguard(type: JavaExec, dependsOn: jar) {
|
task proguard(type: JavaExec, dependsOn: jar) {
|
||||||
classpath = files(configurations.proguard.asPath)
|
classpath = configurations.proguard
|
||||||
main = 'proguard.ProGuard'
|
main = 'proguard.ProGuard'
|
||||||
args '-libraryjars ' + System.properties['java.home'] + '/lib/rt.jar'
|
args '-libraryjars ' + System.properties['java.home'] + '/lib/rt.jar'
|
||||||
args '-dontobfuscate'
|
args '-dontobfuscate'
|
||||||
|
@ -69,7 +69,7 @@ task generateAntlrSource(type: JavaExec) {
|
|||||||
mkdir(antlrOutput)
|
mkdir(antlrOutput)
|
||||||
def grammars = fileTree(antlrSource).include('**/*.g')
|
def grammars = fileTree(antlrSource).include('**/*.g')
|
||||||
|
|
||||||
classpath = files(configurations.antlr3.asPath)
|
classpath = configurations.antlr3
|
||||||
main = 'org.antlr.Tool'
|
main = 'org.antlr.Tool'
|
||||||
args '-fo', relativePath(new File(antlrOutput, 'org/jf/smali'))
|
args '-fo', relativePath(new File(antlrOutput, 'org/jf/smali'))
|
||||||
args grammars.files
|
args grammars.files
|
||||||
@ -82,7 +82,7 @@ task generateTestAntlrSource(type: JavaExec) {
|
|||||||
mkdir(testAntlrOutput)
|
mkdir(testAntlrOutput)
|
||||||
def grammars = fileTree(testAntlrSource).include('**/*.g')
|
def grammars = fileTree(testAntlrSource).include('**/*.g')
|
||||||
|
|
||||||
classpath = files(configurations.antlr3.asPath)
|
classpath = configurations.antlr3
|
||||||
main = 'org.antlr.Tool'
|
main = 'org.antlr.Tool'
|
||||||
args '-fo', relativePath(new File(testAntlrOutput, 'org/jf/smali'))
|
args '-fo', relativePath(new File(testAntlrOutput, 'org/jf/smali'))
|
||||||
args grammars.files.join(' ')
|
args grammars.files.join(' ')
|
||||||
@ -95,7 +95,7 @@ task generateJflexSource(type: JavaExec) {
|
|||||||
mkdir(jflexOutput)
|
mkdir(jflexOutput)
|
||||||
def grammars = fileTree(jflexSource).include('**/*.flex')
|
def grammars = fileTree(jflexSource).include('**/*.flex')
|
||||||
|
|
||||||
classpath = files(configurations.jflex.asPath)
|
classpath = configurations.jflex
|
||||||
main = 'JFlex.Main'
|
main = 'JFlex.Main'
|
||||||
args '-q'
|
args '-q'
|
||||||
args '-d', relativePath(new File(jflexOutput, 'org/jf/smali'))
|
args '-d', relativePath(new File(jflexOutput, 'org/jf/smali'))
|
||||||
@ -133,7 +133,7 @@ gradle.taskGraph.whenReady {
|
|||||||
}
|
}
|
||||||
|
|
||||||
task proguard(type: JavaExec, dependsOn: jar) {
|
task proguard(type: JavaExec, dependsOn: jar) {
|
||||||
classpath = files(configurations.proguard.asPath)
|
classpath = configurations.proguard
|
||||||
main = 'proguard.ProGuard'
|
main = 'proguard.ProGuard'
|
||||||
args '-libraryjars ' + System.properties['java.home'] + '/lib/rt.jar'
|
args '-libraryjars ' + System.properties['java.home'] + '/lib/rt.jar'
|
||||||
args '-dontobfuscate'
|
args '-dontobfuscate'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user