projectBuild
This task builds the specified project.
Parameters
Attribute Description Required ProjectName Name of project to be built Yes BuildType Type of build No, default is Incremental. Can be Incremental or Full FailOnError Whether or not builds should fail on error No, default is true DebugCompilation Whether on not compilations should be debug No, default is true Quiet (deprecated) Whether or not to print out messages No, default is false ShowErrors Whether or not to show the project errors in the ant build log No, Default is true SeverityLevel The problem level to count and treat as a build error No, Default is ERROR. May be ERROR or WARNING or INFORMATION CountValidationErrors Whether or not to count Validation problems as project Errors No, Default is true PropertyCountName Property to receive the project error count No, Default is ProjectErrorCount PropertyMessagesName Property to receive the project error messages No, Default is ProjectErrorMessages Examples
- Build "myProject". Default is incremental with debug information:
<projectBuild ProjectName="myProject" />- Do a production build of "myProject", a full build without debug information:
<projectBuild ProjectName="myProject" failonerror="true" DebugCompilation="false" BuildType="full" /> <echo message="projectBuild: projectName=${projectName} project Error Count=${ProjectErrorCount} project Error Messages=${ProjectErrorMessages}" />
Parent topic
Working with Ant
Related tasks
captureBuildMessages
compileWorkspace
getJavacErrorCount
getProjectData
projectGetErrors
projectImport
projectSetBuild
projectSetImport
setDebugInfo
workspaceBuild
workspaceGetErrors
workspacePreferenceFile
workspacePreferenceGet
workspacePreferenceSet