Hi Toni,
Thanks your suggestion, I will try it.
Toni Menzel wrote:
Why not use Bndtools if you are using eclipse anyway?
On Feb 22, 2012 8:25 AM, "Tang Yong" <tangy...@cn.fujitsu.com> wrote:
Hello Marcel,Dev Team,
Nowaday, I have done some research on building ace's dev enviroment,
and want to share it , and the same time,want to experts to confirm
whether to be right or not.
[about importing the ace's source into eclipse and launching]
Because I always use the eclipse as my dev env, I decide to importing
the ace's source into eclipse.
Firstly, I used eclipse 3.6 and m2eclipse plugin(the fact that maven
supporting is friendly) as dev tool, and importing process is successful.
Secondly, I used the pax runner plugin for eclipse as launching tool.
http://www.ops4j.org/pax/eclipse/update/
Note:
Because the current pax runner plugin(1.7.5) is not compatible with
eclipse 3.6, you must make a patch using the
http://tux2323.github.com/pax-runner-update-site/.
(http://team.ops4j.org/browse/PAXRUNNER-353)
[about the launching setting]
Because ace's server launching used the following script:
"call java -jar pax-runner.jar --ups --workingDirectory=.
scan-dir:required-bundles scan-dir:ace-bundles
scan-file:file:platform.properties %1 %2 %3"
So, I need to put the above options into pax runner plugin's launching
configuration.
(1) make a target definition with scan-dir's bundles in eclipse.
(2) in launching configuration's bundles tab's Framework, select the
"Felix 3.2.1 via Pax Runner"
(3) in launching configuration's Arguments's tab's Program arguments,
add "--ups"
(4) (important!) in launching configuration's Enviroment's
tab',according to contents of "platform.properties" file,add the
fowllowing:
Varible Value
org.apache.ace.configurator.CONFIG_DIR conf
org.apache.felix.http.nio true
org.apache.felix.http.enable true
org.osgi.service.http.port 8080
org.apache.felix.https.enable false
org.osgi.service.http.port.secure 8443
org.apache.felix.http.debug false
org.osgi.framework.bundle.parent framework
org.osgi.framework.bootdelegation com.sun.*,sun.*
Note:You must copy the "conf" config directory to the eclipse 3.6 home
directory which can launch the pax runner plugin.
(5)(important!) although the above are setted, you must adjust the start
level of the bundles in target definition you built. If not
doing,ace-related bundles will not start normally(dependency is not
resolved normally).
[run and debug]
now, you can run and debug the ace in eclipse.The attachment is my
machine's result.
I think that ace's dev team shoud have more great way to build ace dev env.
--Tang
--Best Regard
--
***---------------------------------
富士通南大軟件技術有限公司(FNST)
第二ソフトウェア事業部第一開発部
湯 泳(ユ エイ)
Addr: 南京富士通南大軟件技術有限公司(FNST)
中国南京市雨花台区文竹路6号(210012)
Mail: tangy...@cn.fujitsu.com
Tel: +00-86-25-86630566 内線:7998-8220
Fax: +00-86-25-83317685
***---------------------------------