sunBow getting started

COPYRIGHT (c) 2000-2002 by s&n AG

Document details

Author

Martin Dulisch, s&n AG

Contact

sunbow-support@s-und-n.de

Version

This document conforms to the sunBow preview version


1. Creating a Cocoon project in eclipse
1.1. Working directly in the servlet engine folder
1.2. Create a copy of the files
1.2.1. Step 1: Create a project
1.2.2. Step 2: Import files into the project

1. Creating a Cocoon project in eclipse

This document describes the first steps that are needed to use eclipse with sunBow to manage a Cocoon web application. It shows a way of putting application resources from the filesystem under the control of an eclipse project. You can work directly in the folder in your servlet engine or on a copy of the web application files. Both possibilities are described in this document.

Another way would be to import a project from a CVS server. But this is not described in this document.

1.1. Working directly in the servlet engine folder

Resources of all types are managed in projects under eclipse. So you first have to create a new project that can take all the needed resources. To do this select the menu File/New/Project. The New Project Wizard comes up.

On the first page of the wizard select the category 'Simple' and the type 'Project'. After that select the 'Next' button. On the second page you have to specify the name of the project. Also set the working directory of the project. For that you first have to unselect the checkbox 'Use default' and then specify the directory of your Cocoon installation. After thease steps click on the 'Finish' button. The new project will be created.

After the wizard has closed you should see the new project with all your application files in the Navigator view. Now you can use the sunBow or built-in eclipse tools to work on your resources.

1.2. Create a copy of the files

Use this option if you would prefer to work on a copy of the Cocoon files.

1.2.1. Step 1: Create a project

Open the New Project Wizard. In the first page of the wizard select the category 'Simple' and the type 'Project'. After that select the 'Next' button. On the second page you have to specify the name of the project. When you have entered the name click on the 'Finish' button. The new project will be created.

After the wizard has closed you should see an empty project in the Navigator view.

1.2.2. Step 2: Import files into the project

After we have created a new project we have to copy the files from where we installed Cocoon. For that task we will use the Import Wizard.

Start the wizard with the menu File/Import. The first dialog asks you for the input source. Select the item 'Filesystem'. On the next wizard page you can select the files, that should be imported to the project. Specify the root directory of your source in the field 'Directory'. For example you can enter the directory of your Cocoon installation. After you set the root directory the files and folder that should be imported can be selected. Clicking on the 'Finish' button starts the import.

After the import has been finished the resources are listed in the Navigator view under the project item.

Last Modified Date: Montag, 27. Mai 2002 14:15:17