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 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

Manually creating a non-team PSF
  • If Eclipse team Source Code Management (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 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>
Related tasks
captureBuildMessages
getJavacErrorCount
getProjectData
projectBuild
projectGetErrors
projectImport
projectSetBuild
setDebugInfo
workspaceBuild
workspaceGetErrors
workspacePreferenceFile
workspacePreferenceGet
workspacePreferenceSet

Feedback