On 01.07.2015 19:34, Ergüder Bekrek wrote:
Yes I was checking the source code and I've copied/pasted the
felix.bnd as equinox.bnd
and replaced some options in the .bnd file...
# The Jar Main-Class header
Main-Class: org.apache.ace.agent.launcher.Launcher
Bundle-Version: 1.0.1
Bundle-Name: Apache ACE Agent Felix launcher
Bundle-Description: Standalone launcher that start a Felix framework
with an embedded ACE Agent
# Include the felix defaults
#felix.version=4.2.1
equinox.version=3.10.1.v20140909-1633
Include-Resource:
@${repo;org.eclipse.osgi;${equinox.version}}!/default.properties,\
@${repo;org.eclipse.osgi;${equinox.version}}!/META-INF/services/*,\
@${repo;org.eclipse.osgi;${equinox.version}}!/org/*,\
${repo;org.apache.ace.agent;latest},\
META-INF/services/org.apache.ace.agent.launcher.BundleProvider=resources/org.apache.ace.agent.launcher.BundleProvider
Private-Package: org.apache.ace.agent.launcher,\
org.apache.commons.cli
but when I build it gives me an error such as :
[echo] Enter project org.apache.ace.agent
init:
dependencies:
compile:
build:
compile:
build:
[bnd] 4 ERRORS
[bnd] org.apache.ace.agent.launcher:${repo} macro refers to an
artifact org.eclipse.osgi-3.10.1.v20140909-1633 (HIGHEST) that has an
error: org.eclipse.osgi;version=3.10.1.v20140909-1633 Not found
because latest was not specified. It is, however, present in the
workspace. Add 'org.eclipse.osgi;version=(latest|snapshot)' to see the
bundle in the workspace.
[bnd]
org.apache.ace.agent.launcher:org.apache.ace.agent.launcher.equinox:
Can not find JAR file !/default.properties
[bnd]
org.apache.ace.agent.launcher:org.apache.ace.agent.launcher.equinox:
Can not find JAR file !/META-INF/services/*
[bnd]
org.apache.ace.agent.launcher:org.apache.ace.agent.launcher.equinox:
Can not find JAR file !/org/*
I don't know what to do from now on ....
Honestly it will be really amazing if a launcher with Equinox is also
available for newbies like me who are not deep into the source code
of ACE.
Best regards
On 01.07.2015 19:30, Marcel Offermans wrote:
Hello Ergüder,
On 1 Jul 2015 at 19:16:01 , Ergüder Bekrek (e...@erguder.tk
<mailto:e...@erguder.tk>) wrote:
Hi again! I'm wondering if it's possible to have an Apache ACE Agent
running only with Equinox
instead of Felix...?????
For the moment I'm stick with Equinox for my project and I cannot
change it.
Did any successfully ran Apache ACE Agent with Equinox 3.10?
That is possible.
The agent is an OSGi bundle that you can deploy into any OSGi
framework implementation.
Also, in the org.apache.ace.agent.launcher project, we provide two
variations of a launcher:
1) a version that embeds the Felix framework implementation and
launches the agent;
2) a version that expects some OSGi framework implementation on the
Java class path and instantiates that and launches the agent.
So with option 2) if you put a version of Equinox on the class path,
you should be able to launch it. With a little bit of work it is also
easy to build a launcher yourself that embeds it, similar to how we
now embed Felix.
Let me know if that answers your question!
Greetings, Marcel
_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev