projectSetImport
This task imports an existing Eclipse team Project Set File ("PSF") into a workspace. The PSF must have been first created using an Eclipse team "Project Set Export" command.
Parameters
Attribute Description Required ProjectSetFileName The fully quallified path to the Eclipse PSF file to be imported Yes PropertyImportedProjectNames Property to receive a String[] of the names of the projects which were imported No, default is ImportedProjectNames AutoDeleteExistingProjects Whether or not any existing project (with the same name) will be deleted (replaced) by a new project with the same name No, default is true FailOnError Whether on not the Ant build should fail if there is an import error No, default is true Examples
- Import an Eclipse ProjectSet :
<projectSetImport ProjectSetFileName="{myProjectSet.psf}" />- Import an Eclipse ProjectSet into a clean workspace but do not replace any existing project (fail instead):
<projectSetImport ProjectSetFileName="{myProjectSet.psf}" AutoDeleteExistingProjects="false" FailOnError="true" />
Manually creating a non-team PSF
- If Eclipse team Source Code Managment (SCM) is not being used to store projects, and they are elsewhere on the file system, then a non-team "Ant" PSF can be manually created and used to import sets of existing file-system projects. Its internal project reference locations may be either fully qualified, or dot-relative to the PSF file.
- Sample MyAntProjectSet.psf:
<?xml version="1.0" encoding="UTF-8"?> <psf version="2.0"> <provider id="antimportProjectSet"> <project reference="1.0,antimportProjectSet,X:/MyPath/MyProjectDirectory1,MyProjectName1"/> <project reference="1.0,antimportProjectSet,X:/MyPath/MyProjectDirectory2,MyProjectName2"/> <project reference="1.0,antimportProjectSet,../MyWorkspaceProjectDir,MyProjectName3"/> <project reference="1.0,antimportProjectSet,../MyWorkspaceProjectDir,MyProjectName4"/> </provider> </psf>
Parent topic
Working with Ant
Related tasks
captureBuildMessages
compileWorkspace
getJavacErrorCount
getProjectData
projectBuild
projectGetErrors
projectImport
projectSetBuild
setDebugInfo
workspaceBuild
workspaceGetErrors
workspacePreferenceFile
workspacePreferenceGet
workspacePreferenceSet