Table of Contents Previous Section

Subprojects

A subproject has the same structure as a WebObjects Application project. You can use subprojects to divide large projects into manageable chunks.

When you create a new project, ProjectBuilder creates two subprojects (ClientSideJava and CommonJava) in your project folder. By default, they are not added to the Subprojects suitcase. If you need to use them, you must add them to the project. Then you can add your Java classes to the appropriate project as follows:

Note: These subprojects have the makefile variables JAVA_IS_CLIENT_SIDE and JAVA_IS_SERVER_SIDE set in Makefile.preamble so that the appropriate Java code is generated when you build your project.

To create a subproject:

  1. Choose Project New Subproject.

  2. Specify the name of your subproject in the New Subproject panel and click OK.

    A subproject is created inside the project, with a similar structure to the top-level project. You can add items to the subproject in the same way that you add items to the top-level project.

To add an existing subproject (such as ClientSideJava or CommonJava) to your project:

  1. Double-click Subprojects in the first column of the browser.

  2. In the Add Subprojects panel, navigate to the directory of the subproject you want to add and click Open.

  3. Double-click PB.project to add the subproject to your project.

Supporting Files

The Supporting Files suitcase contains your project's makefile (which you should not edit), as well as Makefile.preamble and Makefile.postamble, which you can modify in order to customize the makefile. You can add other files your project may need (such as Read Me documents) to this suitcase so that they can be edited in Project Builder.

Table of Contents Next Section