public class GetReferencedProjectsTask extends AbstractProjectBasedTask
Returns all referenced projects of a specified project
Modifier and Type | Class and Description |
---|---|
static class |
GetReferencedProjectsTask.NonJavaProjectHandling |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_SEPARATOR
the default seperator
|
static java.lang.String |
SOURCE_CLASSPATH
read projects from classpath (default)
|
static java.lang.String |
SOURCE_PROJECT
read projects from .project file
|
Constructor and Description |
---|
GetReferencedProjectsTask() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
java.lang.String |
getProperty()
Returns the name of an ant property that will hold the list of referenced projects.
|
java.lang.String |
getSeparator()
Returns an (optional) separator that is used to separate the project names.
|
java.lang.String |
getSource()
Return where to read the referenced projects from.
|
boolean |
isExportedOnly() |
boolean |
isPropertySet() |
boolean |
isReadFromClasspath() |
boolean |
isReadFromProject() |
boolean |
isRecursive()
Returns if required projects should be resolve recursive.
|
void |
requirePropertySet() |
protected void |
requireSourceSet() |
void |
setExportedOnly(boolean exportedOnly) |
void |
setProperty(java.lang.String property)
Sets the name of an ant property that will hold the list of referenced projects.
|
void |
setRecursive(boolean recursive)
Specifies if required projects should be resolve recursive.
|
void |
setSeparator(java.lang.String separator)
Sets an (optional) separator that is used to separate the project names.
|
void |
setSource(java.lang.String source)
Sets where to read the referenced projects from.
|
ensureJavaProject, getEclipseProject, getWorkspace, hasText, isProjectNameSet, isProjectSet, isWorkspaceSet, requireWorkspaceAndProjectNameOrProjectSet, requireWorkspaceSet, setInitialiseWorkspace, setProject, setProjectName, setWorkspace
public static final java.lang.String DEFAULT_SEPARATOR
public static final java.lang.String SOURCE_CLASSPATH
public static final java.lang.String SOURCE_PROJECT
public java.lang.String getProperty()
Returns the name of an ant property that will hold the list of referenced projects.
public void setProperty(java.lang.String property)
Sets the name of an ant property that will hold the list of referenced projects.
property
- the name of an ant property that will hold the list of referenced projects.public java.lang.String getSeparator()
Returns an (optional) separator that is used to separate the project names.
public void setSeparator(java.lang.String separator)
Sets an (optional) separator that is used to separate the project names.
separator
- an (optional) separator that is used to separate the project names.public java.lang.String getSource()
Return where to read the referenced projects from. Allowed values are 'classpath' or 'project'.
public void setSource(java.lang.String source)
Sets where to read the referenced projects from. Allowed values are 'classpath' or 'project'.
source
- where to read the referenced projects from.public boolean isRecursive()
Returns if required projects should be resolve recursive.
public void setRecursive(boolean recursive)
Specifies if required projects should be resolve recursive. This attibute is optional and has to be specified only
when source=project
. Defaults to true.
recursive
- true
if required projects should be resolve recursive.public boolean isExportedOnly()
public void setExportedOnly(boolean exportedOnly)
public boolean isPropertySet()
public void requirePropertySet()
protected void requireSourceSet()
public boolean isReadFromProject()
public boolean isReadFromClasspath()
public void execute() throws BuildException
BuildException