mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-02-16 15:40:14 +00:00
added support to build eclipse files for projects that require the
eclipse PDE
This commit is contained in:
parent
df24f9ea24
commit
a03c96d37b
@ -1,29 +1,32 @@
|
|||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
/* Requires Eclipse PDE
|
|
||||||
apply plugin: 'eclipse'
|
//This project requires the eclpse PDE plugin. To create eclipse files for this project, run
|
||||||
eclipse {
|
// "gradle eclipse -PeclipsePDE"
|
||||||
project {
|
if (hasProperty("eclipsePDE")) {
|
||||||
name = 'Eclipse GhidraDevPlugin'
|
apply plugin: 'eclipse'
|
||||||
buildCommand 'org.eclipse.pde.ManifestBuilder'
|
eclipse {
|
||||||
buildCommand 'org.eclipse.pde.SchemaBuilder'
|
project {
|
||||||
natures 'org.eclipse.pde.PluginNature'
|
name = 'Eclipse GhidraDevPlugin'
|
||||||
classpath.file {
|
buildCommand 'org.eclipse.pde.ManifestBuilder'
|
||||||
def requiredPlugins = 'org.eclipse.pde.core.requiredPlugins'
|
buildCommand 'org.eclipse.pde.SchemaBuilder'
|
||||||
beforeMerged { classpath ->
|
natures 'org.eclipse.pde.PluginNature'
|
||||||
classpath.entries.removeAll { entry ->
|
classpath.file {
|
||||||
entry.path == requiredPlugins
|
def requiredPlugins = 'org.eclipse.pde.core.requiredPlugins'
|
||||||
|
beforeMerged { classpath ->
|
||||||
|
classpath.entries.removeAll { entry ->
|
||||||
|
entry.path == requiredPlugins
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
whenMerged { classpath ->
|
||||||
whenMerged { classpath ->
|
withXml {
|
||||||
withXml {
|
def node = it.asNode()
|
||||||
def node = it.asNode()
|
node.appendNode('classpathentry', [kind: 'con', path: requiredPlugins])
|
||||||
node.appendNode('classpathentry', [kind: 'con', path: requiredPlugins])
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
// We want GhidraDev to run with Eclipses launched with Java 8
|
// We want GhidraDev to run with Eclipses launched with Java 8
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
|
Loading…
Reference in New Issue
Block a user