Changes for page Upgrading to WOLips from Xcode or Project Builder
Last modified by Denis Frolov on 2011/05/25 13:12
From version 19.1
edited by Pascal Robert
on 2007/12/08 23:36
on 2007/12/08 23:36
Change comment:
There is no comment for this version
To version 20.1
edited by Pascal Robert
on 2007/07/20 22:00
on 2007/07/20 22:00
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,9 +1,38 @@ 1 -As you know, if you plan to continue using WebObjects since Apple [[deprecated>>http://lists.apple.com/archives/webobjects-dev/2006/Aug/msg01144.html]]EOModeler, WebObjects Builder and RuleModeler. In fact, the tools are [[NOT available at all>>http://www.wocommunity.org/webobjects_faq.html#xcode3]] on Mac OSX 10.5. So, what's the steps to migrate ?1 +As you know, if you plan to continue using WebObjects since Apple deprecated EOModeler, WebObjects Builder and RuleModeler. So, what's the steps to migrate ? 2 2 3 -First, you need toinstallthe WebObjects frameworks. On Leopard (Mac OS X 10.5), the frameworks are available in the[[Xcode 3.0>>http://developer.apple.com/tools/download/]] package. On Tiger (Mac OS X 10.4), the frameworks are available in the [[Xcode 2.5>>http://developer.apple.com/tools/download/]]. After the frameworks are installed, you need to install [[Eclipse>>http://www.eclipse.org/downloads/download.php?file=//eclipse/downloads/drops/R-3.3.1.1-200710231652/eclipse-SDK-3.3.1.1-macosx-carbon.tar.gz]]and [[WOLips>>Install WOLips with EclipseUpdate Manager]].3 +* First, install [[Eclipse>>http://www.eclipse.org]] (3.2.x series) 4 4 5 - Everythingis is installed ? You can startmigrating. Youhave threechoicesformigrationsforprojects. 5 +* After installating Eclipse, start it and follow the [[instructions>>Install WOLips with Eclipse Update Manager]] from this wiki. 6 6 7 -* You only have a couple of frameworks and applications, and those projects are not very complex? You can do a [[manual migration>>Import an Xcode project into WOLips]]. 8 -* You have a couple of projects and you didn't put your components and classes in sub folders ? Try the "[[fleeto>>http://www.global-village.net/migrate.to.eclipse/home]]" script from [[Chuck Hill>>~~chill]]. 9 -* You have complex and/or many projects ? Use the [[XcodeMigration]] tool from [[Pascal Robert>>~~probert]]. 7 +* WOLips is installed ? You can start migrating. 8 + 9 +* You have three choices for migrations for projects. You can do a [[manual migration>>Import an Xcode project into WOLips]], you can use a [[Java tool>>http://community.os.ca/code/webobjects/XCodeMigration-1.0.tgz]] written by [[Pascal Robert>>mailto:probert@os.ca]] or you can use the "[[fleeto>>http://www.global-village.net/migrate.to.eclipse/home]]" script from Chuck Hill over at Global Village. 10 +** If you are using Pascal's tool, please note that it does the following : 11 +*** It use a XML configuration file, and you can convert multiple projects at the same time 12 +*** It parse the original Xcode project by creating a readable plist with /Developer/Tools/pbprojectdump 13 +*** It create a new WOLips project for each Xcode project listed in the XML configuration file 14 +*** It finds all files to copy from the Xcode and copy them to the newly created WOLips project 15 +**** Java files (.java) are copied to the Sources folder 16 +**** Components (.wo) and API (.api) files are copied to the Components folder 17 +**** Files ending with "Properties" are copied to the Resources folder 18 +**** EOModels (.eomodeld) are copied to the Resources folder 19 +**** Properties files (.prop and .properties) are copied to the Resources folder 20 +**** ReportMill reports (.rpt) are copied to the Resources folder 21 +**** Java libs (.jar) are copied to the Librairies folder 22 +**** Direct2Web rules (.d2wmodel) are copied to the Resources folder 23 +**** EOGenerator templates (.eotemplate) are copied to the Resources folder 24 +**** All other files are copied into the WebServerResources folder 25 +*** If MacRoman encoding is found for a file, it will the convert the file to UTF-8 26 +*** Have a look at the Readme file included with the tool to find out how to use it 27 +** If you are using Chuck's script, please note that it does the following : 28 +*** Checks to see if you actually created a project with a Wonder layout in Eclipse (the script looks for a .project file) 29 +*** Checks to see if the current folder (the original XCode project) has a .xcodeproj file 30 +*** Does a find of all .java files in the XCode project folder and copies them over to the "Sources" folder of the Eclipse project 31 +*** Copies all .wo and .api files found in the root folder of the XCode folder into the "Components" folder of the Eclipse project 32 +*** Copies all .eomodeld, .plist, .txt, .html, .xml and the Properties files found in the root folder of the XCode folder into the "Resources" folder of the Eclipse project 33 +*** Copies all .gif, .jpeg, .js, .css and .map files found in the root folder of the XCode folder into the "WebServerResources" folder of the Eclipse project 34 +** So if you have files (for examples, your .wo files were in a WOComponents folder), you either have to modify the script or move the files by hand 35 +** You didn't use Chuck's script ? Check out this [[page>>Import an Xcode project into WOLips]]. 36 + 37 +* Go back to Eclipse, right-click and hit "Refresh". You should see your files in the various folders, and Eclipse will automatically build your project. After that, you just need to check for any errors and warnings and fix them. 38 +** In our case, we had old EOModels that where using NSdoubleNumber instead of NSNumber. BUT Entity Modeler won't show those errors inside Eclipse, instead you will see blank stuff. You see the actual errors in Console.app instead, so be sure to check that log if you have any strange errors.