You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

This tutorial will help you import an existing Xcode WebObjects project for use in WOLips. Eclipse has the concept of a workspace--a folder where a collection of your projects are stored. You select the current workspace when Eclipse launches (unless you have selected a default workspace). Eclipse does not require that your project itself be in the workspace folder, but this is the default behavior. You can choose to move your existing Xcode project into your workspace folder, or you may add Eclipse/WOLips features to your existing Xcode project. This tutorial will initially focus on moving a copy of your Xcode project into the Eclipse workspace for use in WOLips.

  1. Create a new WOApplication project. For this tutorial we will import the example PetStoreWOJava project from /Developer/Examples/JavaWebObjects/PetStorewOJava so we will call this new project PetStoreWOJava.

  1. Copy the Java files from the Xcode project into the src folder of the new WOLips project. You can do this in a variety of ways, including in the Finder, but the easiest is probably to filter your Xcode project for .java files (or use the Implementation files smart group) and drag and drop from Xcode directly to Eclipse.

It will ask if you would like to overwrite the existing files, choose Yes To All to replace the default WOLips files.

If you use the Finder you will need to refresh the Eclipse project using File->Refresh before it will notice the changes to the project.

  1. Now copy the WOComponents and other resources into the Eclipse project. You may want to create separate folders in your eclipse project for different types of resources such as images and other resource files, but for the purposes of this tutorial we will just drop them all into the project root folder which is the default. You can use the Finder if you like, or drag and drop from Xcode into the Eclipse project.

If you have your resources organized in groups in your Xcode project, you will need to recreate this structure in the Eclipse project using folders. At this time, WOLips does not have support for arbitrary groupings of files independent of the file system, but here's an example that mimics the Xcode structure in Eclipse.

  1. If you have any Java files outside of the source folder, move them all into the source folder. If any of your classes were in packages, you may

  • No labels