The newProject tag will create a project if a project by that name doesn't already exist in the workspace.
When you create a project, you are responsible for creating any files and folders required by the configuration of the project (specified in the .project file in the root directory of the project). You do not have to create a .project file, unless you want to specify project natures, builders and other tool-specific configuration information. If the pattern will generate files whose builders require special initialization, you may need to use the rebuildWorkspace tag to commit the project and "dot files" generated by the pattern and to initialize the tooling that reads those files.
See also <rebuildWorkspace> , <workingSet>
Tag Summary | |
---|---|
required |
<newProject name="value" /> |
full tag |
<newProject name="value" show="value" /> |
Required Attributes |
|
---|---|
name | The name of the new project. If a project with this name already exists then no project will be created. |
Optional Attributes | |
---|---|
show | Indicates whether this project is to be included in the working set created by the application of this pattern. One of "true" (include the project in the working set), "false" (do not include the project) or "project" (include the project) |
Example | |
---|---|
<newProject name="My Project" show="false" /> This newProject will ensure that a project named "My Project" exists. Since the value of the show attribute is "false", the project will not be added to the working set being created by the application of this pattern. |
© Copyright IBM Corporation 2000,
2006. All Rights Reserved.