Changes for page XcodeMigration
Last modified by William Sandner on 2011/10/19 21:07
From version 42.1
edited by Pascal Robert
on 2010/01/04 06:20
on 2010/01/04 06:20
Change comment:
There is no comment for this version
To version 40.1
edited by Pascal Robert
on 2010/01/04 06:19
on 2010/01/04 06:19
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -19,85 +19,89 @@ 19 19 20 20 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). 21 21 22 -{{panel align=center}}22 +{{panel}} 23 23 24 24 !Image 1.png! 25 -{panel} 26 26 26 +{{/panel}} 27 + 27 27 Make sure that you are in the WOLips perspective. 28 28 29 - !Image 6.png!30 +[[image:Image 6.png]] 30 30 31 - !Image 7.png!32 +[[image:Image 7.png]] 32 32 33 -[Download the tool |^XcodeMigration.zip] (you don't need to expand the .zip file)34 +[[Download the tool>>^XcodeMigration.zip]] (you don't need to expand the .zip file) 34 34 35 -Import the XcodeMigration tool into Eclipse, by selecting _File_\->_Import_. 36 +Import the XcodeMigration tool into Eclipse, by selecting //File// > //Import//. 36 36 37 - !Image 2.png!38 +[[image:Image 2.png]] 38 38 39 -Select _Existings Projects into Workspace_and click_Next_.40 +Select //Existings Projects into Workspace// and click //Next//. 40 40 41 - !Image 3.png!42 +[[image:Image 3.png]] 42 42 43 -Select the location of the ZIP file with the tool and click _Finish_.44 +Select the location of the ZIP file with the tool and click //Finish//. 44 44 45 - !Image 4.png!46 +[[image:Image 4.png]] 46 46 47 -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_.48 +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//. 48 48 49 - !Image 8.png!50 +[[image:Image 8.png]] 50 50 51 - !Image 9.png!52 +[[image:Image 9.png]] 52 52 53 -You should see the tool and the two templates in the _WO Package Explorer_.54 +You should see the tool and the two templates in the //WO Package Explorer//. 54 54 55 - !Image 10.png!56 +[[image:Image 10.png]] 56 56 57 -Open _config.xml_and change the value of the_<applicationTemplatePath>_and_<frameworkTemplatePath>_nodes so that the path points to the templates you created below.58 +Open //config.xml// and change the value of the //<applicationTemplatePath>// and //<frameworkTemplatePath>// nodes so that the path points to the templates you created below. 58 58 59 - !Image 22.png!60 +[[image:Image 22.png]] 60 60 61 -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 .xcodeproj62 +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 62 62 63 -Right-click on the _XCodeMigration.java_class and select_Run As_\->_Open Run dialog..._64 +Right-click on the //XCodeMigration.java// class and select //Run As// > //Open Run dialog...// 64 64 65 - !Image 12.png!66 +[[image:Image 12.png]] 66 66 67 -Double-click on _Java Application_.68 +Double-click on //Java Application//. 68 68 69 - !Image 13.png!70 +[[image:Image 13.png]] 70 70 71 -Click on the _Arguments_ tab and enter this value as a _Program arguments_. 72 -{code} 72 +Click on the //Arguments// tab and enter this value as a //Program arguments//. 73 + 74 +{{code}} 75 + 73 73 ${project_loc}/config.xml 74 -{code} 75 -!Image 21.png! 76 76 77 - Click _Apply_ andclick _Run_.78 +{{/code}} 78 78 80 +[[image:Image 21.png]] 81 + 82 +Click //Apply// and click //Run//. 83 + 79 79 When it's running, you should see a output like this: 80 80 81 - !Image 16.png!86 +[[image:Image 16.png]] 82 82 83 -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.88 +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. 84 84 85 - !Image 17.png!90 +[[image:Image 17.png]] 86 86 87 -Your converted projects will appear in the _WO Package Explorer_.92 +Your converted projects will appear in the //WO Package Explorer//. 88 88 89 - !Image 18.png!94 +[[image:Image 18.png]] 90 90 91 91 Fix all frameworks dependencies and any other build errors. It's done. 92 92 93 - h1.FAQ98 += FAQ = 94 94 95 -*Q.* I can't a _Could not find working dir for project_error when I launch my converted application.96 -*A.* Make sure that, in _config.xml_,_<applicationTemplatePath>_is set to a WO application instead of a WO framework.100 +**Q.** I can't a //Could not find working dir for project// error when I launch my converted application. 101 +**A.** Make sure that, in //config.xml//, //<applicationTemplatePath>// is set to a WO application instead of a WO framework. 97 97 98 -*Q.* Some of my resources are missing or in the wrong folder. 99 -*A.* The tool detect files that should be marked as _Resources_by file extension or name. If a file is not a Java class or one of the file type in the_Resources_list, the file will be move to the_WebServerResources_folder instead. You just have to move the files to the Resources folder when needed. If you have file types who should be detected as resources, you can add the needed code in the_copyFiles_method.103 +**Q.** Some of my resources are missing or in the wrong folder. 104 +**A.** The tool detect files that should be marked as //Resources// by file extension or name. If a file is not a Java class or one of the file type in the //Resources// list, the file will be move to the //WebServerResources// folder instead. You just have to move the files to the Resources folder when needed. If you have file types who should be detected as resources, you can add the needed code in the //copyFiles// method. 100 100 101 -*Q.* My application is localized and the content in the components are displaying the wrong caracters. 102 -*A.* If you set the _<convertToUTF8>_ node to true, your Java classes will be converted from MacRoman to UTF-8, but the tool will NOT modify the .woo file so that they use UTF-8. Either you stay in MacRoman and change the value of _<convertToUTF8>_ to _false_, or you will have to modify your components so that they use UTF-8 103 -{{/panel align=center}} 106 +**Q.** My application is localized and the content in the components are displaying the wrong caracters. 107 +**A.** If you set the //<convertToUTF8>// node to true, your Java classes will be converted from MacRoman to UTF-8, but the tool will NOT modify the .woo file so that they use UTF-8. Either you stay in MacRoman and change the value of //<convertToUTF8>// to //false//, or you will have to modify your components so that they use UTF-8.