Documentation Archive Developer
Search
PATH  Documentation > WebObjects 4.5 > Tools and Techniques

   

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, the type of project from the Type pull-down menu, 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.


© 1999 Apple Computer, Inc. – (Last Updated July 27 99)