Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Note

XcodeMigration is using the tool pbprojectdump which is no longer present in the Xcode 3 bundle. You need to install Xcode 2.5 to get access to pbprojectdump (you can copy it over from another machine too).  

Alternatively, inside the Xcode tools 2.5 disk image, pbprojectdump can be found at Packages/Packages/DeveloperTools.pkg/Contents/Archive.pax.gz:/Tools/pbprojectdump

How to use it

Get the project from the GitHub repository.

If you want to convert your Java classes from MacRoman to UTF-8, make sure your Eclipse workspace is in UTF-8 (the default is MacRoman).

...

Make sure that you are in the WOLips perspective.

Panel

Image Modified
Image Modified

Download the tool (you don't need to expand the .zip file). You can also get it from a Subversion repository.

Import the XcodeMigration tool into Eclipse, by selecting File -> Import.

Panel

Image Modified

Select Existings Projects into Workspace and click Next.

Panel

Image Modified

Select the location of the ZIP file with the tool and click Finish.

Image Removed

The tool needs two projects templates, one of them is a application template, the other a framework template.  So you need to create a WebObjects Application and a WebObjects Framework.

Panel

Image Modified

Panel

Image Modified

You should see the tool and the two templates in the WO Package Explorer.

Panel

Image Modified

Open config.xml and change the value of the <applicationTemplatePath> and <frameworkTemplatePath> nodes so that the path points to the templates you created below.Image Removed

For each project that you want to import, you need the a <project> node.  <path> is the file system path to the Xcode project, <name> is the project name, minus .xcodeproj

Right-click on the XCodeMigration.java class and select Run As -> Open Run dialog...

Panel

Image Modified

Double-click on Java Application.

Panel

Image Modified

Click on the Arguments tab and enter this value as a Program arguments.

Code Block
${project_loc}/config.xml
Panel

Image Modified

Click Apply and click Run.

When it's running, you should see a output like this:

Panel

Image Modified

To import the converted projects, open File -> Import -> Existings projects into workspace.  Click Next. Select Select Root Directory and browse to /tmp/migrations.  You should see the list of projects that you converted.

Panel

Image Modified

Your converted projects will appear in the WO Package Explorer.

Panel

Image Modified

Fix all frameworks dependencies and any other build errors.  It's done.

...