public inbox for gentoo-soc@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Jiale Pan (Kyle Pan)" <kyle.j.pan@gmail.com>
To: gentoo-soc@lists.gentoo.org
Cc: Serkan Kaba <serkan@gentoo.org>
Subject: [gentoo-soc] Gsoc: Gentoo/Java integration Project Weekly report #!
Date: Sun, 22 May 2011 23:28:09 +0800	[thread overview]
Message-ID: <4DD92B89.5040405@gmail.com> (raw)

Hi All,

My name is Kylepan and I'm working on Gentoo/Java integration Project. 
This is my first weekly report.

Here is the brief introduction of my project:
---------------------------------------------------------------------
The project includes an improvement to current java-config and a new 
eclipse-plugin. The plug-in, which when clicked, lists system installed 
java libraries for users to select and import into projects. This avoids 
user manually browses and locates system installed libraries, making 
developing more efficient and comfortable. The existing tool 
java-config, with some necessary improvements, is chosen as the data 
retrieval backend of this project. Jython is used to integrate 
java-config to the plug-in.This project will mainly benefit developers 
using eclipse, and due to planned work on improvements to java-config, 
it will benefit java-config project and even non-developer gentoo users 
as well.
----------------------------------------------------------------------

During the past few days I was devoting to the first step of my project 
--write a demo querying a variable of a java packge's package.env, whose 
function will be used in my project. And now the demo is completed and 
you can check in the 
repo(http://overlays.gentoo.org/svn/proj/java/projects/GenEclipse/trunk/) . 
It's an Eclipse project and should use my modified branch of 
java-config( 
http://overlays.gentoo.org/svn/proj/java/projects/java-config-2/branches/kylepan/java-config-2.1.9999k.ebuild)


issues:
All issues are about compatibility and seem a bit annoying:

As this project uses Jython to interpret python code, and the latest 
Jython implements Python 2.5 syntax.
The snippet of code like:
except UnexistingPackageError as e ( accepted in Python 2.6 and 3.1)
complains in Python 2.5.
while using:
except UnexistingPackageError, e (accepted in Python 2.5 and 2.6)
complains in Python 3.1

Since I have to use Jython , I have to use the later syntax, and it 
causes the errors in emerging my branch of java-config:

--------------------
* Compilation and optimization of Python modules for CPython 2.6 ...
  * Compilation and optimization of Python modules for CPython 3.1 ...
*** Error compiling 
/usr/lib64/python3.1/site-packages/java_config_2/EnvironmentManager.py ...
   File 
"/usr/lib64/python3.1/site-packages/java_config_2/EnvironmentManager.py", line 
59
     except InvalidVMError, ex:
                          ^
SyntaxError: invalid syntax
<<< 
/usr/lib64/python3.1/site-packages/java_config_2/EnvironmentManager.py[co [ 
!! ]
  * Updating desktop mime database ...
----------------------

One solution I think is directly patch the src before
"* Compilation and optimization of Python modules for CPython 3.1 ..."

So I would like to ask suggestions that is it feasible and acceptable?


Plans:
My plans for next week:
1. to solve that issue.
2. to add the query javadoc function to java-config




-- 
Best regards,
Jiale Pan(Kyle Pan)



                 reply	other threads:[~2011-05-22 15:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DD92B89.5040405@gmail.com \
    --to=kyle.j.pan@gmail.com \
    --cc=gentoo-soc@lists.gentoo.org \
    --cc=serkan@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox