mirror of
https://github.com/github/codeql.git
synced 2026-05-05 21:55:19 +02:00
Refactor DeclaredRepository to library
This commit is contained in:
@@ -365,6 +365,17 @@ class PomProperty extends PomElement {
|
||||
PomProperty() { getParent() instanceof PomProperties }
|
||||
}
|
||||
|
||||
/**
|
||||
* A repository block inside of a maven pom.
|
||||
*/
|
||||
class DeclaredRepository extends PomElement {
|
||||
DeclaredRepository() {
|
||||
this.getName() = ["repository", "snapshotRepository", "pluginRepository"]
|
||||
}
|
||||
|
||||
string getUrl() { result = getAChild("url").(PomElement).getValue() }
|
||||
}
|
||||
|
||||
/**
|
||||
* A folder that represents a maven local repository using the standard layout. Any folder called
|
||||
* "repository" with a parent name ".m2" is considered to be a maven repository.
|
||||
|
||||
Reference in New Issue
Block a user