Changes for page XcodeMigration

Last modified by William Sandner on 2011/10/19 21:07

From version 40.1
edited by Pascal Robert
on 2010/01/04 06:19
Change comment: There is no comment for this version
To version 42.1
edited by Pascal Robert
on 2010/01/04 06:20
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -19,89 +19,85 @@
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}}
22 +{{panel align=center}}
23 23  
24 24  !Image 1.png!
25 +{panel}
25 25  
26 -{{/panel}}
27 -
28 28  Make sure that you are in the WOLips perspective.
29 29  
30 -[[image:Image 6.png]]
29 +!Image 6.png!
31 31  
32 -[[image:Image 7.png]]
31 +!Image 7.png!
33 33  
34 -[[Download the tool>>^XcodeMigration.zip]] (you don't need to expand the .zip file)
33 +[Download the tool|^XcodeMigration.zip] (you don't need to expand the .zip file)
35 35  
36 -Import the XcodeMigration tool into Eclipse, by selecting //File// > //Import//.    
35 +Import the XcodeMigration tool into Eclipse, by selecting _File_ \-> _Import_.    
37 37  
38 -[[image:Image 2.png]]
37 +!Image 2.png!
39 39  
40 -Select //Existings Projects into Workspace// and click //Next//.
39 +Select _Existings Projects into Workspace_ and click _Next_.
41 41  
42 -[[image:Image 3.png]]
41 +!Image 3.png!
43 43  
44 -Select the location of the ZIP file with the tool and click //Finish//.
43 +Select the location of the ZIP file with the tool and click _Finish_.
45 45  
46 -[[image:Image 4.png]]
45 +!Image 4.png!
47 47  
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//.
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_.
49 49  
50 -[[image:Image 8.png]]
49 +!Image 8.png!
51 51  
52 -[[image:Image 9.png]]
51 +!Image 9.png!
53 53  
54 -You should see the tool and the two templates in the //WO Package Explorer//.
53 +You should see the tool and the two templates in the _WO Package Explorer_.
55 55  
56 -[[image:Image 10.png]]
55 +!Image 10.png!
57 57  
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.
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.
59 59  
60 -[[image:Image 22.png]]
59 +!Image 22.png!
61 61  
62 -For each project that you want to import, you need the a //<project>// node.&nbsp; //<path>// is the file system path to the Xcode project, //<name>// is the project name, minus .xcodeproj
61 +For each project that you want to import, you need the a _<project>_ node.&nbsp; _<path>_ is the file system path to the Xcode project, _<name>_ is the project name, minus .xcodeproj
63 63  
64 -Right-click on the //XCodeMigration.java// class and select //Run As// > //Open Run dialog...//
63 +Right-click on the _XCodeMigration.java_ class and select _Run As_ \-> _Open Run dialog..._
65 65  
66 -[[image:Image 12.png]]
65 +!Image 12.png!
67 67  
68 -Double-click on //Java Application//.
67 +Double-click on _Java Application_.
69 69  
70 -[[image:Image 13.png]]
69 +!Image 13.png!
71 71  
72 -Click on the //Arguments// tab and enter this value as a //Program arguments//.
73 -
74 -{{code}}
75 -
71 +Click on the _Arguments_ tab and enter this value as a _Program arguments_.
72 +{code}
76 76  ${project_loc}/config.xml
74 +{code}
75 +!Image 21.png!
77 77  
78 -{{/code}}
77 +Click _Apply_ and click _Run_.
79 79  
80 -[[image:Image 21.png]]
81 -
82 -Click //Apply// and click //Run//.
83 -
84 84  When it's running, you should see a output like this:
85 85  
86 -[[image:Image 16.png]]
81 +!Image 16.png!
87 87  
88 -To import the converted projects, open //File// > //Import// > //Existings projects into workspace//.&nbsp; Click //Next//. Select //Select Root Directory// and browse to ///tmp/migrations//.&nbsp; You should see the list of projects that you converted.
83 +To import the converted projects, open _File_ \-> _Import_ \-> _Existings projects into workspace_.&nbsp; Click _Next_. Select _Select Root Directory_ and browse to _/tmp/migrations_.&nbsp; You should see the list of projects that you converted.
89 89  
90 -[[image:Image 17.png]]
85 +!Image 17.png!
91 91  
92 -Your converted projects will appear in the //WO Package Explorer//.
87 +Your converted projects will appear in the _WO Package Explorer_.
93 93  
94 -[[image:Image 18.png]]
89 +!Image 18.png!
95 95  
96 96  Fix all frameworks dependencies and any other build errors.&nbsp; It's done.
97 97  
98 -= FAQ =
93 +h1. FAQ
99 99  
100 -**Q.**&nbsp; I can't a //Could not find working dir for project// error when I launch my converted application.
101 -**A.**&nbsp; Make sure that, in //config.xml//, //<applicationTemplatePath>// is set to a WO application instead of a WO framework.
95 +*Q.*&nbsp; I can't a _Could not find working dir for project_ error when I launch my converted application.
96 +*A.*&nbsp; Make sure that, in _config.xml_, _<applicationTemplatePath>_ is set to a WO application instead of a WO framework.
102 102  
103 -**Q.**&nbsp; Some of my resources are missing or in the wrong folder.
104 -**A.**&nbsp; 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.
98 +*Q.*&nbsp; Some of my resources are missing or in the wrong folder.
99 +*A.*&nbsp; 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.
105 105  
106 -**Q.**&nbsp; My application is localized and the content in the components are displaying the wrong caracters.
107 -**A.**&nbsp; 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.
101 +*Q.*&nbsp; My application is localized and the content in the components are displaying the wrong caracters.
102 +*A.*&nbsp; 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}}