summaryrefslogtreecommitdiffstats
path: root/branches/sca-android/modules/retrotranslator_readme
blob: 93e1a611cceffb47dcc0e8b3038ad53fc0f141b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
Google Summer of Code 2008
Allow Google Android applications to easily consume business services
=====================================================================
This readme details the steps necessary to run retrotranslator on a workspace hosting SCA modules and modified Android modules. 

1. Download the modified code from: https://svn.apache.org/repos/asf/incubator/tuscany/sandbox/mobile-android

svn checkout https://svn.apache.org/repos/asf/incubator/tuscany/sandbox/mobile-android

2. Download and install the SCA modules from: https://svn.apache.org/repos/asf/incubator/tuscany/java/sca/modules

svn checkout --revision 643746 https://svn.apache.org/repos/asf/incubator/tuscany/java/sca/modules

cd modules

mvn clean install -Dtest=no
mvn -Peclipse eclipse:eclipse -Dtest=no

3. Run maven on interface-java-jaxws module:

cd mobile-android/interface-java-jaxws/

mvn

4. Create a new Eclipse workspace and set the M2_REPO variable as shown below:

mvn -Declipse.workspace=workspace eclipse:add-maven-repo

5. Import the projects from step 1, making sure to uncheck the option to copy projects into the workspace.

6. Set the Android plugin's preferences to point to the folder /tools/adb inside the SDK folder

7. Check if the Android library was created on your eclipse user libraries. If it wasn't, create a library called "Android" and add the android-sdk/android.jar file to it.

8. Import the projects from step 2, making sure to uncheck the option to copy projects into the workspace.

9. Add the android.jar to android-jdk-classes

10. Fix build path entries for JAR's displaying errors on calculator-android:

activation-1.1.jar
axiom-api-1.2.5.jar
cgilib-nodep-2.1_3.jar
geronimo-commonj_1.1_spec-1.0.jar
stax-1.2.0.jar
stax-api-1.0-2.jar

11. Do the same for JAR's on tuscany-host-embedded

stax-1.2.0.jar
android.jar

12. Add android.jar to the following modules:

tuscany-core
tuscany-binding-ejb
tuscany-binding-http
tuscany-binding-jsonrpc
tuscany-binding-rmi
tuscany-binding-rss-rome
tuscany-binding-ws-axis2
tuscany-contribution-groovy
tuscany-host-webapp
tuscany-implementation-das
tuscany-implementation-data-xml
tuscany-implementation-node-runtime
tuscany-implementation-osgi
tuscany-implementation-resource
tuscany-implementation-spring
tuscany-implementation-widget
tuscany-workspace-admin

13. Build workspace

14. Disable the "Java Builder" from all projects

15. Run retrotranslator on mobile-android and modules from the code downloaded in steps 1 and 2, as shown below:

java -jar ../Retrotranslator-1.2.6-bin/retrotranslator-transformer-1.2.6.jar -srcdir ../srcdir -target 1.5 -reflection safe -stripannot -embed . -classpath ../Retrotranslator-1.2.6-bin/retrotranslator-android-1.2.6.jar -verbose

16. Add retrotranslator-android-1.2.6.jar as an external JAR to calculator-android

17. Rebuild workspace

18. Run calculator-android. The result will be a ClassNotFoundException for java.rmi.Remote or java.beans.Introspector