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:
- Add server-side Java classes to your top-level project.
- Add client-side Java classes to the ClientSideJava subproject.
- Add Java classes that are common to both client and server to the CommonJava subproject.
To create a subproject:
- Choose Project New Subproject.
- 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.
- Double-click Subprojects in the first column of the browser.
- In the Add Subprojects panel, navigate to the directory of the subproject you want to add and click Open.
- 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