Changes for page XcodeMigration

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

From version 52.1
edited by William Sandner
on 2011/10/19 21:07
Change comment: There is no comment for this version
To version 47.1
edited by Pascal Robert
on 2010/01/04 06:20
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.wsandner
1 +XWiki.probert
Content
... ... @@ -11,93 +11,64 @@
11 11  {{/info}}
12 12  
13 13  {{note}}
14 -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 from another machine too).  \\
14 +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 it over another machine too).
15 15  
16 -Alternatively, inside the Xcode tools 2.5 disk image, pbprojectdump can be found at Packages/Packages/DeveloperTools.pkg/Contents/Archive.pax.gz:/Tools/pbprojectdump
17 -
18 18  {{/note}}
19 19  
20 20  = How to use it =
21 21  
22 -Get the project from the [[GitHub repository>>https://github.com/pascalrobert/XCodeMigration]].
23 -
24 24  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).
25 25  
26 26  {{panel}}
27 27  
28 -!Image 1.png|align=center!
24 +!Image 1.png!align=center!
29 29  
30 30  {{/panel}}
31 31  
32 32  Make sure that you are in the WOLips perspective.
33 33  
34 -{{panel}}
30 +[[image:Image 6.png]]
35 35  
36 -!Image 6.png|align=center!
37 -!Image 7.png|align=center!
32 +[[image:Image 7.png]]
38 38  
39 -{{/panel}}
34 +[[Download the tool>>^XcodeMigration.zip]] (you don't need to expand the .zip file)
40 40  
41 -Import the XcodeMigration tool into Eclipse, by selecting //File// > //Import//.
36 +Import the XcodeMigration tool into Eclipse, by selecting //File// > //Import//.    
42 42  
43 -{{panel}}
38 +[[image:Image 2.png]]
44 44  
45 -!Image 2.png|align=center!
46 -
47 -{{/panel}}
48 -
49 49  Select //Existings Projects into Workspace// and click //Next//.
50 50  
51 -{{panel}}
42 +[[image:Image 3.png]]
52 52  
53 -!Image 3.png|align=center!
54 -
55 -{{/panel}}
56 -
57 57  Select the location of the ZIP file with the tool and click //Finish//.
58 58  
46 +[[image:Image 4.png]]
47 +
59 59  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//.
60 60  
61 -{{panel}}
50 +[[image:Image 8.png]]
62 62  
63 -!Image 8.png|align=center!
52 +[[image:Image 9.png]]
64 64  
65 -{{/panel}}
66 -
67 -{{panel}}
68 -
69 -!Image 9.png|align=center!
70 -
71 -{{/panel}}
72 -
73 73  You should see the tool and the two templates in the //WO Package Explorer//.
74 74  
75 -{{panel}}
56 +[[image:Image 10.png]]
76 76  
77 -!Image 10.png|align=center!
78 -
79 -{{/panel}}
80 -
81 81  Open //config.xml// and change the value of the //<applicationTemplatePath>// and //<frameworkTemplatePath>// nodes so that the path points to the templates you created below.
82 82  
60 +[[image:Image 22.png]]
61 +
83 83  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
84 84  
85 85  Right-click on the //XCodeMigration.java// class and select //Run As// > //Open Run dialog...//
86 86  
87 -{{panel}}
66 +[[image:Image 12.png]]
88 88  
89 -!Image 12.png|align=center!
90 -
91 -{{/panel}}
92 -
93 93  Double-click on //Java Application//.
94 94  
95 -{{panel}}
70 +[[image:Image 13.png]]
96 96  
97 -!Image 13.png|align=center!
98 -
99 -{{/panel}}
100 -
101 101  Click on the //Arguments// tab and enter this value as a //Program arguments//.
102 102  
103 103  {{code}}
... ... @@ -106,38 +106,22 @@
106 106  
107 107  {{/code}}
108 108  
109 -{{panel}}
80 +[[image:Image 21.png]]
110 110  
111 -!Image 21.png|align=center!
112 -
113 -{{/panel}}
114 -
115 115  Click //Apply// and click //Run//.
116 116  
117 117  When it's running, you should see a output like this:
118 118  
119 -{{panel}}
86 +[[image:Image 16.png]]
120 120  
121 -!Image 16.png|align=center!
122 -
123 -{{/panel}}
124 -
125 125  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.
126 126  
127 -{{panel}}
90 +[[image:Image 17.png]]
128 128  
129 -!Image 17.png|align=center!
130 -
131 -{{/panel}}
132 -
133 133  Your converted projects will appear in the //WO Package Explorer//.
134 134  
135 -{{panel}}
94 +[[image:Image 18.png]]
136 136  
137 -!Image 18.png|align=center!
138 -
139 -{{/panel}}
140 -
141 141  Fix all frameworks dependencies and any other build errors.&nbsp; It's done.
142 142  
143 143  = FAQ =