Gentoo Archives: gentoo-soc

From: "Jiale Pan (Kyle Pan)" <kyle.j.pan@×××××.com>
To: gentoo-soc@l.g.o
Cc: Serkan Kaba <serkan@g.o>
Subject: [gentoo-soc] Gsoc: Gentoo/Java integration Project Weekly report #!
Date: Sun, 22 May 2011 15:30:30
Message-Id: 4DD92B89.5040405@gmail.com
1 Hi All,
2
3 My name is Kylepan and I'm working on Gentoo/Java integration Project.
4 This is my first weekly report.
5
6 Here is the brief introduction of my project:
7 ---------------------------------------------------------------------
8 The project includes an improvement to current java-config and a new
9 eclipse-plugin. The plug-in, which when clicked, lists system installed
10 java libraries for users to select and import into projects. This avoids
11 user manually browses and locates system installed libraries, making
12 developing more efficient and comfortable. The existing tool
13 java-config, with some necessary improvements, is chosen as the data
14 retrieval backend of this project. Jython is used to integrate
15 java-config to the plug-in.This project will mainly benefit developers
16 using eclipse, and due to planned work on improvements to java-config,
17 it will benefit java-config project and even non-developer gentoo users
18 as well.
19 ----------------------------------------------------------------------
20
21 During the past few days I was devoting to the first step of my project
22 --write a demo querying a variable of a java packge's package.env, whose
23 function will be used in my project. And now the demo is completed and
24 you can check in the
25 repo(http://overlays.gentoo.org/svn/proj/java/projects/GenEclipse/trunk/) .
26 It's an Eclipse project and should use my modified branch of
27 java-config(
28 http://overlays.gentoo.org/svn/proj/java/projects/java-config-2/branches/kylepan/java-config-2.1.9999k.ebuild)
29
30
31 issues:
32 All issues are about compatibility and seem a bit annoying:
33
34 As this project uses Jython to interpret python code, and the latest
35 Jython implements Python 2.5 syntax.
36 The snippet of code like:
37 except UnexistingPackageError as e ( accepted in Python 2.6 and 3.1)
38 complains in Python 2.5.
39 while using:
40 except UnexistingPackageError, e (accepted in Python 2.5 and 2.6)
41 complains in Python 3.1
42
43 Since I have to use Jython , I have to use the later syntax, and it
44 causes the errors in emerging my branch of java-config:
45
46 --------------------
47 * Compilation and optimization of Python modules for CPython 2.6 ...
48 * Compilation and optimization of Python modules for CPython 3.1 ...
49 *** Error compiling
50 /usr/lib64/python3.1/site-packages/java_config_2/EnvironmentManager.py ...
51 File
52 "/usr/lib64/python3.1/site-packages/java_config_2/EnvironmentManager.py", line
53 59
54 except InvalidVMError, ex:
55 ^
56 SyntaxError: invalid syntax
57 <<<
58 /usr/lib64/python3.1/site-packages/java_config_2/EnvironmentManager.py[co [
59 !! ]
60 * Updating desktop mime database ...
61 ----------------------
62
63 One solution I think is directly patch the src before
64 "* Compilation and optimization of Python modules for CPython 3.1 ..."
65
66 So I would like to ask suggestions that is it feasible and acceptable?
67
68
69 Plans:
70 My plans for next week:
71 1. to solve that issue.
72 2. to add the query javadoc function to java-config
73
74
75
76
77 --
78 Best regards,
79 Jiale Pan(Kyle Pan)