mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-10 06:02:09 +00:00
GP-0: Moving JsonDoclet
This commit is contained in:
parent
3588ecdab7
commit
90f712fc00
@ -14,7 +14,7 @@
|
|||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
eclipse.project.name = '_JsonDoclet'
|
eclipse.project.name = '_Doclets'
|
||||||
|
|
||||||
apply plugin: 'java-library'
|
apply plugin: 'java-library'
|
||||||
|
|
@ -13,6 +13,8 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
package ghidra.doclets.json;
|
||||||
|
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
@ -61,7 +63,7 @@ public class JsonDoclet implements Doclet {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public SourceVersion getSupportedSourceVersion() {
|
public SourceVersion getSupportedSourceVersion() {
|
||||||
return SourceVersion.RELEASE_11;
|
return SourceVersion.RELEASE_21;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
@ -23,7 +23,7 @@ eclipse {
|
|||||||
type = 'EXCLUDE_ALL'
|
type = 'EXCLUDE_ALL'
|
||||||
matcher {
|
matcher {
|
||||||
id = 'org.eclipse.ui.ide.multiFilter'
|
id = 'org.eclipse.ui.ide.multiFilter'
|
||||||
arguments = '1.0-name-matches-true-false-JsonDoclet'
|
arguments = '1.0-name-matches-true-false-Doclets'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
##VERSION: 2.0
|
##VERSION: 2.0
|
||||||
JsonDoclet/Module.manifest||GHIDRA||||END|
|
Doclets/Module.manifest||GHIDRA||||END|
|
||||||
sleighDevBuild.template||GHIDRA||||END|
|
sleighDevBuild.template||GHIDRA||||END|
|
||||||
sleighDistBuild.template||GHIDRA||||END|
|
sleighDistBuild.template||GHIDRA||||END|
|
||||||
|
@ -152,7 +152,7 @@ configurations {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
jsondoc project('JsonDoclet')
|
jsondoc project('Doclets')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -166,7 +166,6 @@ task createJsondocs(type: Javadoc, description: 'Generate JSON docs for all proj
|
|||||||
|
|
||||||
failOnError false
|
failOnError false
|
||||||
|
|
||||||
|
|
||||||
// Must add classpath for main and test source sets. Javadoc will fail if it cannot
|
// Must add classpath for main and test source sets. Javadoc will fail if it cannot
|
||||||
// find referenced classes.
|
// find referenced classes.
|
||||||
classpath = rootProject.ext.ghidraPath
|
classpath = rootProject.ext.ghidraPath
|
||||||
@ -178,7 +177,6 @@ task createJsondocs(type: Javadoc, description: 'Generate JSON docs for all proj
|
|||||||
// apply from: "$rootProject.projectDir/gradle/javadoc.gradle"
|
// apply from: "$rootProject.projectDir/gradle/javadoc.gradle"
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
// Generate at package level because user may try to get help directly on an object they have
|
// Generate at package level because user may try to get help directly on an object they have
|
||||||
// rather than its public interface.
|
// rather than its public interface.
|
||||||
options.addBooleanOption("package", true)
|
options.addBooleanOption("package", true)
|
||||||
@ -190,7 +188,7 @@ task createJsondocs(type: Javadoc, description: 'Generate JSON docs for all proj
|
|||||||
// Some internal packages are not public and need to be exported.
|
// Some internal packages are not public and need to be exported.
|
||||||
options.addMultilineStringsOption("-add-exports").setValue(["java.desktop/sun.awt=ALL-UNNAMED"])
|
options.addMultilineStringsOption("-add-exports").setValue(["java.desktop/sun.awt=ALL-UNNAMED"])
|
||||||
|
|
||||||
options.doclet = "JsonDoclet"
|
options.doclet = "ghidra.doclets.json.JsonDoclet"
|
||||||
doFirst {
|
doFirst {
|
||||||
options.docletpath = new ArrayList(configurations.jsondoc.files)
|
options.docletpath = new ArrayList(configurations.jsondoc.files)
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@ includeProjects('GPL')
|
|||||||
/*******************************************************************************************
|
/*******************************************************************************************
|
||||||
* Include miscellaneous support modules
|
* Include miscellaneous support modules
|
||||||
*******************************************************************************************/
|
*******************************************************************************************/
|
||||||
includeProject('JsonDoclet', 'GhidraBuild/BuildFiles', true)
|
includeProject('Doclets', 'GhidraBuild/BuildFiles', true)
|
||||||
includeProject('LaunchSupport', 'GhidraBuild', true)
|
includeProject('LaunchSupport', 'GhidraBuild', true)
|
||||||
includeProject('Skeleton', 'GhidraBuild', true)
|
includeProject('Skeleton', 'GhidraBuild', true)
|
||||||
includeProject('BuildFiles', 'GhidraBuild', true)
|
includeProject('BuildFiles', 'GhidraBuild', true)
|
||||||
|
Loading…
Reference in New Issue
Block a user