ClasspathEntrypublic class ProjectDependency extends AbstractClasspathEntry
accessRules, COMPONENT_DEPENDENCY_ATTRIBUTE, COMPONENT_NON_DEPENDENCY_ATTRIBUTE, entryAttributes, exported, path| Constructor | Description |
|---|---|
ProjectDependency(Node node) |
|
ProjectDependency(String path) |
Create a dependency on another Eclipse project.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
buildDependencies(Object... buildDependencies) |
Sets the tasks to be executed to build the the file returned by
getPublication() |
boolean |
equals(Object o) |
|
TaskDependency |
getBuildDependencies() |
Returns the tasks to be executed to build the the file returned by
getPublication() |
String |
getKind() |
|
FileReference |
getPublication() |
Returns the file that can replace this ProjectDependency
|
FileReference |
getPublicationJavadocPath() |
Returns the javadoc artifact of the project publication
|
FileReference |
getPublicationSourcePath() |
Returns the source artifact of the project publication
|
int |
hashCode() |
|
void |
setPublication(FileReference publication) |
Sets the file that can replace this ProjectDependency
|
void |
setPublicationJavadocPath(FileReference publicationJavadocPath) |
Sets the javadoc artifact of the project publication
|
void |
setPublicationSourcePath(FileReference publicationSourcePath) |
Sets the source artifact of the project publication
|
String |
toString() |
addClasspathEntry, appendNode, getAccessRules, getEntryAttributes, getNativeLibraryLocation, getPath, isExported, normalizePath, setAccessRules, setExported, setNativeLibraryLocation, setPath, writeEntryAttributespublic ProjectDependency(Node node)
public ProjectDependency(String path)
path - The path to the Eclipse project, which is the name of the eclipse project preceded by "/".@Incubating public FileReference getPublication()
@Incubating public void setPublication(FileReference publication)
@Incubating public FileReference getPublicationSourcePath()
getPublication()@Incubating public void setPublicationSourcePath(FileReference publicationSourcePath)
getPublication()@Incubating public FileReference getPublicationJavadocPath()
getPublication()@Incubating public void setPublicationJavadocPath(FileReference publicationJavadocPath)
getPublication()@Incubating public TaskDependency getBuildDependencies()
getPublication()
This property doesn't have a direct effect to the Gradle Eclipse plugin's behaviour. It is used, however, by Buildship to execute the configured tasks each time before the user imports the project or before a project synchronization starts in case this project is closed to build the substitute jar.
@Incubating public void buildDependencies(Object... buildDependencies)
getPublication()getBuildDependencies()public boolean equals(Object o)
equals in class AbstractClasspathEntrypublic int hashCode()
hashCode in class AbstractClasspathEntrypublic String getKind()
public String toString()
toString in class AbstractClasspathEntry