mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-29 07:55:53 +08:00
Merge remote-tracking branch 'origin/patch' into Ghidra_12.1
This commit is contained in:
@@ -39,6 +39,7 @@ sun.security.x509.X509CertImpl;
|
|||||||
|
|
||||||
java.rmi.server.UID;
|
java.rmi.server.UID;
|
||||||
java.rmi.server.ObjID;
|
java.rmi.server.ObjID;
|
||||||
|
[Ljava.rmi.server.ObjID;
|
||||||
|
|
||||||
java.rmi.dgc.DGC;
|
java.rmi.dgc.DGC;
|
||||||
java.rmi.dgc.Lease;
|
java.rmi.dgc.Lease;
|
||||||
|
|||||||
+16
-2
@@ -339,6 +339,20 @@ def getCurrentDateTimeLong() {
|
|||||||
return formattedDate
|
return formattedDate
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*********************************************************************************
|
||||||
|
* Returns the project object from the given projectDependency
|
||||||
|
*********************************************************************************/
|
||||||
|
def getDependencyProject(p, projectDependency) {
|
||||||
|
if (projectDependency.hasProperty("path")) {
|
||||||
|
// Supported by Gradle 8.11 and later
|
||||||
|
return p.project(projectDependency.path)
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
// Supported in Gradle 8.5, removed in Gradle 9
|
||||||
|
return projectDependency.dependencyProject
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*********************************************************************************
|
/*********************************************************************************
|
||||||
* Returns true if 'project' has a direct or transitive API project dependency
|
* Returns true if 'project' has a direct or transitive API project dependency
|
||||||
* on the project with path 'targetPath'. The 'targetPath' should be specified
|
* on the project with path 'targetPath'. The 'targetPath' should be specified
|
||||||
@@ -355,11 +369,11 @@ boolean hasApiProjectDependency(Project project, String targetPath) {
|
|||||||
.allDependencies
|
.allDependencies
|
||||||
.withType(org.gradle.api.artifacts.ProjectDependency)
|
.withType(org.gradle.api.artifacts.ProjectDependency)
|
||||||
|
|
||||||
if (apiDeps.any { it.dependencyProject.path == targetPath }) {
|
if (apiDeps.any { getDependencyProject(p, it).path == targetPath }) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
return apiDeps.any { dep -> walk(dep.dependencyProject) }
|
return apiDeps.any { walk(getDependencyProject(p, it)) }
|
||||||
}
|
}
|
||||||
|
|
||||||
walk(project)
|
walk(project)
|
||||||
|
|||||||
Reference in New Issue
Block a user