GP-4795: Initial support for Visual Studio Code script and module

development
This commit is contained in:
Ryan Kurtz
2024-07-26 11:02:32 -04:00
parent fd1fb151e5
commit 73018adb80
3 changed files with 297 additions and 12 deletions

View File

@@ -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.
@@ -43,6 +43,7 @@ file(ghidraDir + "/application.properties").withReader { reader ->
checkGradleVersion()
task copyDependencies(type: Copy) {
group "Ghidra Private"
from configurations.runtimeClasspath
into "lib"
exclude { fileTreeElement ->
@@ -76,6 +77,7 @@ def DISTRIBUTION_DIR = file("dist")
def pathInZip = "${project.name}"
task zipSource (type: Zip) {
group "Ghidra Private"
// Define some metadata about the zip (name, location, version, etc....)
it.archiveBaseName = project.name + "-src"
@@ -89,6 +91,7 @@ task zipSource (type: Zip) {
}
task buildExtension (type: Zip) {
group "Ghidra Private"
archiveBaseName = "${ZIP_NAME_PREFIX}_${project.name}"
archiveExtension = 'zip'
@@ -299,6 +302,8 @@ def hasJarHelp(File file) {
}
tasks.register('cleanHelp') {
group "Ghidra Private"
File helpOutput = file('build/help/main/help')
doFirst {
delete helpOutput
@@ -307,6 +312,7 @@ tasks.register('cleanHelp') {
// Task for calling the java help indexer, which creates a searchable index of the help contents
tasks.register('indexHelp', JavaExec) {
group "Ghidra Private"
File helpRootDir = file('src/main/help/help')
File outputFile = file("build/help/main/help/${project.name}_JavaHelpSearch")
@@ -355,9 +361,8 @@ tasks.register('indexHelp', JavaExec) {
// - validates help
// - the files generated will be placed in a diretory usable during development mode and will
// eventually be placed in the <Module>.jar file
tasks.register('buildHelp', JavaExec) {
group "private"
tasks.register('buildHelp', JavaExec) {
group "Ghidra Private"
dependsOn 'indexHelp'