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 qualified 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 |
| USERID | If a CVS PSF is used, and if it contains the string USERID, then this value is substituted | No |
| PASSWORD | If a CVS PSF is used, and if it contains the string PASSWORD, then this value is substituted | No |
Examples
<projectSetImportÂ
ProjectSetFileName="${myProjectSet.psf}" />
<projectSetImport ProjectSetFileName="${myProjectSet.psf}" USERID="${MyCvsUserid}" PASSWORD="${MyCvsPassword}" />
<projectSetImportÂ
ProjectSetFileName="${myProjectSet.psf}"
AutoDeleteExistingProjects="false"
FailOnError="true" />
<?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>