3.2Project Type
3.2.1General
A Project Type has the following properties (see Figure 1 – Project Type service example):
- Build Commands: command executed by Eclipse to create/edit a file
Example: org.eclipse.jdt.core.javabuilder, compiles real-time sources. - Deployement: Specifies the way to deploy (only valid for a deployment on Eclipse and Web-based project).
- Directories: Specifies the directories to copy in the projects, this is useful for copying trees containing specific code or files (it will be overwritten). Multiple directories may be specified.
- Environnements: Specifies the execution environments of the generated application.
Example: Apache Environment, JRE, etc… - Libs: Specifies the libraries (JAR / Assemblies) required for the project. (All these libraries will be packaged in the final application: EAR / MSI).
- Name Suffix concatenated with Project Name (2.1.3.2) when generating the project.
- Project Name: Is used by the generator. Usually leave blank so can inherit it from Workflow.
- Project Reference: Reference to other relevant projects needed to compile.
Example: Service refers to entities. - Runtimes: Specifies the runtime environment.

Figure 1: Resource Model - Project - Properties
3.2.2Child
See Figure 2.
- Nature: Specifies the nature of a project for Eclipse. A project can have multiple natures.
- Source: Specifies the location of the directories containing the generated source. There may be several specified.
- Class: Location of compiled classes. A single directory is allowed.

Figure 2: Resource Model - Project - Child
3.2.3Set up for each Project Type
3.2.3.1Entities
3.2.3.1.1Properties
The default properties of the entities Project Type are setup as below (see Figure 3):
- Build Commands: org.eclipse.jdt.core.javabuilder
- Environnements: Eclipse JRE
- Libs:
- ApacheCommons
- BluageCommons
- Hibernate 3.2.5.
- Name: entities.
- Runtimes: Runtime Error: Reference source not found

Figure 3: Resource Model - Project – Entities - Properties
3.2.3.1.2Child
The setup for the entities Project Type contains (see Figure 4):
- One Nature: JAVA
- One Source Dir: e.g., src
- One Class Dir: e.g., classes

Figure 4: Resource Model - Project – Entities - Child
3.2.3.1.3Nature
The setup for the Nature IDs of the entities Project Type is as below (see Figure 5):

Figure 5: Resource Model - Project – Entities - Nature
3.2.3.1.4Source Dir
The setup of the Source Dir is usually “src”.
3.2.3.1.5Class Dir
The setup of the Class Dir is usually “classes”.
3.2.3.2Service
3.2.3.2.1Properties
The default properties of the service Project Type are setup as below (see Figure 6):
- Build Commands: org.eclipse.jdt.core.javabuilder
- Environnements: Eclipse JRE
- Libs:
- ApacheCommons
- BluageCommons
- Service
- Servlet
- Name: service
- Reference Project: Entities
- Runtimes: Runtime Error: Reference source not found

Figure 6: Resource Model - Project – Service - Properties
3.2.3.2.2Child
The setup for the service Project Type contains (see Figure 7):
- One Nature: JAVA
- One Source Dir: e.g., src
- One Class Dir: e.g., classes

Figure 7: Resource Model - Project – Service - Child
3.2.3.2.3Nature
Cf. Nature of Entities project.
3.2.3.2.4Source Dir
The setup of the Source Dir is usually “src”.
3.2.3.2.5Class Dir
The setup of the Class Dir is usually “classes”.
3.2.3.3Web
3.2.3.3.1Properties
The default properties of the web Project Type are setup as below (see Figure 8):
- Build Commands:
- org.eclipse.jdt.core.javabuilder
- org.eclipse.wst.common.project.facet.core.builder
- org.eclipse.wst.validation.validationbuilder
- Deployement: Deployement 1.5.0
- Directories: Dir def webDir
- Environnements:
- Eclipse JRE
- Apache Tomcat
- Module container
- Web container
- Libs:
- ApacheCommons
- BluageCommons
- ComponentsUtils
- Servlet
- Service
- Hibernate 3.2.5
- ...
- Name: web
- Reference Project: Entities and Service
- Runtimes: Runtime Apache Tomcat v5.5

Figure 8: Resource Model - Project – Web - Properties
3.2.3.3.2Child
The setup for the web Project Type contains (see Figure 9):
- One Nature: WEB
- One Source Dir: e.g., src
- One Class Dir: e.g., classes

Figure 9: Resource Model - Project – Web - Child
3.2.3.3.3Nature
Cf. Nature of Entities project.
3.2.3.3.4Source Dir
The setup of the Source Dir is usually “src”.
3.2.3.3.5Class Dir
The setup of the Class Dir is usually “classes”.