getProjectData

This task gets the specified project information.

Parameters

Attribute Description Required
ProjectName The name of the project Yes
Basedir (deprecated) The fully qualified project basedir (typically X:\MYINSTALLDIR\MYWORKSPACE\MYPROJECT) No (deprecated).
ProjectProperty (deprecated) Property name to receive the project name No (deprecated), default is projectName
WorkspaceProperty Property name to receive the workspace path No, default is workspaceName
LocationProperty Property name to receive the project location No, default is locationName
NatureProperty Property name to receive the project nature No, default is natureName
hasSpecifiedNature The name of a project nature to be tested No, no default (only enter a value if you want to test if the project also has that specific nature)
hasSpecifiedNatureProperty Property name to receive true (or false) if the project has (or does not have) the specified nature Yes, if hasSpecifiedNature is present
FailOnError Will cause the build to fail if the operation cannot complete successfully (such as specifying an invalid project) No, default is true

Examples

 

Parent topic

Working with Ant

 

Related tasks

captureBuildMessages
compileWorkspace
getJavacErrorCount
projectBuild
projectGetErrors
projectImport
projectSetBuild
projectSetImport
setDebugInfo
workspaceBuild
workspaceGetErrors
workspacePreferenceFile
workspacePreferenceGet
workspacePreferenceSet