mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
Remove deprecated Gradle features
This commit is contained in:
parent
91c07fd933
commit
0a81592c23
10 changed files with 14 additions and 16 deletions
|
@ -69,7 +69,7 @@ task nodepJar(type: Jar) {
|
||||||
dependsOn(configureNodepJar)
|
dependsOn(configureNodepJar)
|
||||||
dependsOn(jar)
|
dependsOn(jar)
|
||||||
|
|
||||||
appendix = 'nodep'
|
archiveAppendix = 'nodep'
|
||||||
manifest {
|
manifest {
|
||||||
attributes['Main-Class'] = 'agent.dbgeng.gadp.DbgEngGadpServer'
|
attributes['Main-Class'] = 'agent.dbgeng.gadp.DbgEngGadpServer'
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,7 +64,7 @@ task nodepJar(type: Jar) {
|
||||||
dependsOn(configureNodepJar)
|
dependsOn(configureNodepJar)
|
||||||
dependsOn(jar)
|
dependsOn(jar)
|
||||||
|
|
||||||
appendix = 'nodep'
|
archiveAppendix = 'nodep'
|
||||||
manifest {
|
manifest {
|
||||||
attributes['Main-Class'] = 'agent.dbgmodel.gadp.DbgModelGadpServer'
|
attributes['Main-Class'] = 'agent.dbgmodel.gadp.DbgModelGadpServer'
|
||||||
}
|
}
|
||||||
|
|
|
@ -67,7 +67,7 @@ task nodepJar(type: Jar) {
|
||||||
dependsOn(configureNodepJar)
|
dependsOn(configureNodepJar)
|
||||||
dependsOn(jar)
|
dependsOn(jar)
|
||||||
|
|
||||||
appendix = 'nodep'
|
archiveAppendix = 'nodep'
|
||||||
manifest {
|
manifest {
|
||||||
attributes['Main-Class'] = 'agent.gdb.gadp.GdbGadpServer'
|
attributes['Main-Class'] = 'agent.gdb.gadp.GdbGadpServer'
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,7 +64,7 @@ task nodepJar(type: Jar) {
|
||||||
dependsOn(configureNodepJar)
|
dependsOn(configureNodepJar)
|
||||||
dependsOn(jar)
|
dependsOn(jar)
|
||||||
|
|
||||||
appendix = 'nodep'
|
archiveAppendix = 'nodep'
|
||||||
manifest {
|
manifest {
|
||||||
attributes['Main-Class'] = 'agent.lldb.gadp.LldbGadpServer'
|
attributes['Main-Class'] = 'agent.lldb.gadp.LldbGadpServer'
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,7 @@ task genTestPy(type: JavaExec) {
|
||||||
outputs.dir(outDir)
|
outputs.dir(outDir)
|
||||||
classpath(sourceSets["main"].runtimeClasspath)
|
classpath(sourceSets["main"].runtimeClasspath)
|
||||||
classpath(sourceSets["test"].runtimeClasspath)
|
classpath(sourceSets["test"].runtimeClasspath)
|
||||||
main = "ghidra.comm.util.pyexport.GeneratePython"
|
mainClass = "ghidra.comm.util.pyexport.GeneratePython"
|
||||||
args("ghidra.comm.tests.packet", outDir)
|
args("ghidra.comm.tests.packet", outDir)
|
||||||
doLast {
|
doLast {
|
||||||
println("NOTE: It is normal to see some export errors, since some classes are intentionally broken to test error detection")
|
println("NOTE: It is normal to see some export errors, since some classes are intentionally broken to test error detection")
|
||||||
|
|
|
@ -87,7 +87,7 @@ task buildCParser(type: JavaExec) {
|
||||||
outputs.dir file("${outputDir}")
|
outputs.dir file("${outputDir}")
|
||||||
|
|
||||||
classpath = configurations.javacc
|
classpath = configurations.javacc
|
||||||
main = 'javacc'
|
mainClass = 'javacc'
|
||||||
workingDir = "${srcDir}"
|
workingDir = "${srcDir}"
|
||||||
args "-OUTPUT_DIRECTORY=${outputDir}"
|
args "-OUTPUT_DIRECTORY=${outputDir}"
|
||||||
// args "-DEBUG_PARSER=true"
|
// args "-DEBUG_PARSER=true"
|
||||||
|
@ -107,7 +107,7 @@ task buildCPPParser(type: JavaExec) {
|
||||||
outputs.dir file("${outputDir}")
|
outputs.dir file("${outputDir}")
|
||||||
|
|
||||||
classpath = configurations.javacc
|
classpath = configurations.javacc
|
||||||
main = 'javacc'
|
mainClass = 'javacc'
|
||||||
workingDir = "${srcDir}"
|
workingDir = "${srcDir}"
|
||||||
args "-OUTPUT_DIRECTORY=${outputDir}"
|
args "-OUTPUT_DIRECTORY=${outputDir}"
|
||||||
// args "-DEBUG_PARSER=true"
|
// args "-DEBUG_PARSER=true"
|
||||||
|
|
|
@ -81,7 +81,7 @@ task indexHelp(type: JavaExec) {
|
||||||
|
|
||||||
classpath = sourceSets.helpIndex.runtimeClasspath
|
classpath = sourceSets.helpIndex.runtimeClasspath
|
||||||
|
|
||||||
main = 'com.sun.java.help.search.Indexer'
|
mainClass = 'com.sun.java.help.search.Indexer'
|
||||||
|
|
||||||
// tell the indexer where send its output
|
// tell the indexer where send its output
|
||||||
args '-db', outputFile.absolutePath
|
args '-db', outputFile.absolutePath
|
||||||
|
@ -131,7 +131,7 @@ task buildHelp(type: JavaExec, dependsOn: indexHelp) {
|
||||||
inputs.dir helpRootDir
|
inputs.dir helpRootDir
|
||||||
outputs.dir outputDir
|
outputs.dir outputDir
|
||||||
|
|
||||||
main = 'help.GHelpBuilder'
|
mainClass = 'help.GHelpBuilder'
|
||||||
|
|
||||||
args '-n', "${project.name}" // use the module's name for the help file name
|
args '-n', "${project.name}" // use the module's name for the help file name
|
||||||
|
|
||||||
|
@ -169,7 +169,7 @@ task findUnusedHelp(type: JavaExec) {
|
||||||
|
|
||||||
inputs.dir helpRootDir
|
inputs.dir helpRootDir
|
||||||
|
|
||||||
main = 'help.validator.UnusedHelpImageFileFinder'
|
mainClass = 'help.validator.UnusedHelpImageFileFinder'
|
||||||
|
|
||||||
// args '-debug' // print debug info
|
// args '-debug' // print debug info
|
||||||
|
|
||||||
|
|
|
@ -164,7 +164,7 @@ task sleighCompile (type: JavaExec) {
|
||||||
|
|
||||||
// define standard parameters for JavaExec
|
// define standard parameters for JavaExec
|
||||||
classpath configurations.sleighConfig
|
classpath configurations.sleighConfig
|
||||||
main = 'ghidra.pcodeCPort.slgh_compile.SleighCompile'
|
mainClass = 'ghidra.pcodeCPort.slgh_compile.SleighCompile'
|
||||||
|
|
||||||
// Delay adding the directory argument until the first part of the execution phase, so
|
// Delay adding the directory argument until the first part of the execution phase, so
|
||||||
// that any extra args added by a project override will be added to the arg list before
|
// that any extra args added by a project override will be added to the arg list before
|
||||||
|
|
|
@ -104,11 +104,9 @@ task jacocoReport(type: JacocoReport, group: 'Coverage reports') {
|
||||||
|
|
||||||
reports {
|
reports {
|
||||||
html {
|
html {
|
||||||
enabled true
|
required
|
||||||
destination new File(rootDir.absolutePath + "/jacocoReport")
|
destination new File(rootDir.absolutePath + "/jacocoReport")
|
||||||
}
|
}
|
||||||
xml {
|
xml { }
|
||||||
enabled false
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,7 +62,7 @@ task rasterizeSvg(type: JavaExec) {
|
||||||
files.push(file.toString())
|
files.push(file.toString())
|
||||||
}
|
}
|
||||||
|
|
||||||
main = MAIN_CLASS
|
mainClass = MAIN_CLASS
|
||||||
|
|
||||||
// Set up the entire arg list, minus the input files.
|
// Set up the entire arg list, minus the input files.
|
||||||
def argsList = ["-scriptSecurityOff",
|
def argsList = ["-scriptSecurityOff",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue