mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-21 19:42:14 +00:00
GP-0: Moving JsonDoclet
This commit is contained in:
parent
3588ecdab7
commit
90f712fc00
@ -4,9 +4,9 @@
|
|||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
@ -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'
|
||||||
|
|
@ -4,15 +4,17 @@
|
|||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* 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
|
@ -4,9 +4,9 @@
|
|||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
@ -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|
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
@ -152,7 +152,7 @@ configurations {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
jsondoc project('JsonDoclet')
|
jsondoc project('Doclets')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -165,8 +165,7 @@ task createJsondocs(type: Javadoc, description: 'Generate JSON docs for all proj
|
|||||||
destinationDir file(ROOT_PROJECT_DIR + "/build/tmp/jsondoc")
|
destinationDir file(ROOT_PROJECT_DIR + "/build/tmp/jsondoc")
|
||||||
|
|
||||||
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)
|
||||||
}
|
}
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
@ -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