mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GP-5257: Fixing Gradle warnings
This commit is contained in:
parent
eaa2a5c6b3
commit
44fb13b292
36 changed files with 234 additions and 346 deletions
|
@ -4,9 +4,9 @@
|
|||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
|
@ -123,10 +123,14 @@ clean {
|
|||
*****************************************************************************************/
|
||||
task writeSleighDevBuild {
|
||||
def templateFilePath = project(':BuildFiles').projectDir.toString() + "/sleighDevBuild.template"
|
||||
def softwareModelingProject = project(':SoftwareModeling')
|
||||
|
||||
doLast {
|
||||
// Generate build.xml with injected classpath for running sleigh compiler
|
||||
def sleighDevClasspath = project(':SoftwareModeling').sourceSets.main.runtimeClasspath.collect { it.absolutePath }.join(':')
|
||||
def sleighDevClasspath = softwareModelingProject.sourceSets.main.runtimeClasspath.collect {
|
||||
it.absolutePath
|
||||
}.join(':')
|
||||
|
||||
copy {
|
||||
into "data"
|
||||
from (templateFilePath) {
|
||||
|
@ -160,7 +164,7 @@ rootProject.assembleDistribution {
|
|||
task sleighCompile (type: JavaExec) {
|
||||
dependsOn saveSleighArgs
|
||||
group = rootProject.GHIDRA_GROUP
|
||||
description " Compiles all the sleigh languages. [gradle/processorProject.gradle]\n"
|
||||
description = " Compiles all the sleigh languages. [gradle/processorProject.gradle]\n"
|
||||
|
||||
// define standard parameters for JavaExec
|
||||
classpath configurations.sleighConfig
|
||||
|
@ -195,8 +199,8 @@ rootProject.allSleighCompile.dependsOn sleighCompile
|
|||
*
|
||||
*****************************************************************************************/
|
||||
task cleanSleigh {
|
||||
group rootProject.GHIDRA_GROUP
|
||||
description "Removes all the compile sleigh language files (*.sla). [gradle/processorProject.gradle]\n"
|
||||
group = rootProject.GHIDRA_GROUP
|
||||
description = "Removes all the compile sleigh language files (*.sla). [gradle/processorProject.gradle]\n"
|
||||
doLast {
|
||||
def deleteTree = fileTree(dir: "data/languages", include: "*.sla")
|
||||
deleteTree.each { File file ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue