Gentoo Archives: gentoo-soc

From: Serkan Kaba <serkan@g.o>
To: gentoo-soc@l.g.o
Cc: Kyle Pan <kyle.j.pan@×××××.com>
Subject: Re: [gentoo-soc] interested in Gentoo/Java IDE integration
Date: Wed, 30 Mar 2011 16:25:56
Message-Id: 4D93597B.4050609@gentoo.org
In Reply to: Re: [gentoo-soc] interested in Gentoo/Java IDE integration by Kyle Pan
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 On 30-03-2011 18:25, Kyle Pan wrote:
5 > Hi Serkan,
6 >
7 > Firstly many thanks for your kind and quick reply:)
8 >
9 >> 1. get to know the mechanism of how eclipse in gentoo finding system
10 >> library currently and fix it.(or develop a plug-in to find system
11 >> library? )( currently I'm still not clear how eclipse in gentoo find
12 >> system libraries.I'm going to investigate it if this is right way to
13 >> the project)
14 > Yes, that's what I have in mind. We can already enumerate a list of
15 > installed libraries along with what jars, jni libs,source code javadoc
16 > it has. We can also get a list of dependencies of a library as well.
17 > This is mostly Python code and Portage is also in Python. Jython may
18 > help you in integration here.
19 >
20 > ---------I don't know whether this understanding is correct or not:
21 > the code that already have for emuerating a list of installed
22 > libraries(along with other things required) is writen in Python. And I
23 > can use the result of this code. And Could you expain more detail
24 > about "Python may help me integration".
25 > And also, Could you kindly give me an use case of this part of
26 > job(just like my explain the 2nd part blow), I think it would be very
27 > helpful to me to catch it more clearly and correctly:)
28 Sorry for speaking too cryptic. This part of the project will make the
29 installed Java packages appear in list of libraries in Eclipse.
30 We have a tool named "java-config" which can do all these and written in
31 Python. Jython may help you to easily integrate Java and Python (There
32 was some project of Eclise that would result in writing plugins in other
33 languages but I don't know its current status) It also has a cli
34 frontend which you may consider as an alternative. You could also
35 directly parse package.env files installed with every Java package. (I
36 think you already have Java packages in your Gentoo system which you may
37 take a look)
38 >
39 >
40 >
41 >> 2. let PackageKit to work with Portage in order to automatically
42 >> download missed system library based on imports declaration when the
43 >> user is coding.
44 > I didn't plan this as part of the project. Please explain this in more details.
45 > ----------------------PackageKit is a package management tool that can
46 > use apt, yum, pcman etc as its back-end.Now I don't know if it can
47 > use emerge backend and I'll verify it later.This part of job's mainly
48 > function can be described as the following use case:
49 > User A is coding in eclipse. He/She typed "import A.B.C.D;",which is a
50 > class/package in one of the System library but the library has not
51 > installed on the machine(of course ,portage tree should contains the
52 > library's ebuilds). Then thanks to the this part of the job, it is
53 > automactically downloaded and installed.
54 > I've also don't clear why PackageKit should be used(I think revoking
55 > emerge is sufficient,though I'm not very sure,and what your opionion
56 > is?) Since PackageKit is metioned in idealist, so there should be some
57 > reasons I not know for using it?
58 > Anyway, I believe addressing this use case letting it doing
59 > automatically is very meaningful, even PackageKit doesn't been
60 > used(just invoking emerge).
61 I don't understand how you plan to proceed with this. There's no Java
62 package to Gentoo package mapping anywhere and even if that can be done
63 that should be a central tinderbox that merges packages and creates a
64 list of classes installed with it.
65 >
66 >
67 > PS.
68 > According to the idealist page ,I am required to take the action of "
69 > fix a real bug reported in Bugzilla to show that I can use the tools
70 > to make a meaningful change" before application and said my contract
71 > can help me determine which SCM and repository I should use for this.
72 > Would you mind help that tell me which SCM and repository and guide me
73 > instrctions to fix a proper bug?
74 >
75 > Thanks a lot.
76 Here's a good alternative for you.
77 http://bugs.gentoo.org/show_bug.cgi?id=179853
78
79 It's a trivial bug in java-config, which you will be interacting with
80 for this project.
81 >
82 > Best Regards,
83 > Kyle Pan
84 >
85 >
86 >
87
88 - --
89 Sincerely,
90 Serkan KABA
91 Gentoo Developer
92 -----BEGIN PGP SIGNATURE-----
93 Version: GnuPG v2.0.17 (GNU/Linux)
94 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
95
96 iEYEARECAAYFAk2TWXsACgkQRh6X64ivZaL1zwCdEzZmLtKrnzBiDzr25rmS8gzj
97 G44An1sNAfOYjtrv1ge1wKIPc1d4VeWI
98 =bNgN
99 -----END PGP SIGNATURE-----