[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] Execute Eclipse Application with equinox launcher
|
Hi Jonah,
Thanks for the explanation. I definitely intend to commit back in
the future, but not for this one. I don't feel to be competent
enough yet to contribute. In this case I think my modifications
are 0% interesting for others.
It seems that there is a lot I'm missing for this Application
stuff: When exporting the feature, no P2 repo is generated
(although the option is checked). My expectation was that a
directory p2 is created in location I specified. I only get a
feature directory with the generated features in it. To be honest,
I didn't understand the installation step you described.
>> Then you can install that P2 repo into an Eclipse
installation. You should be able to install it into just the
Eclipse Platform Binary (as labelled on https://download.eclipse.org/eclipse/downloads/drops4/R-4.14-201912100610/)[2].
Assuming I have that P2 repo, how can I install it?
On 10/01/2020 04.33, Jonah Graham
wrote:
Hi Sadik,
Of course you may know all the above already. If so, you
need to build your fork of CDT. The full solution would be to
setup your own build environment and use maven - but that may
seem overkill.
What does not work, AFAIK, is exporting just the
plug-in[0]. You need to export a feature and include a P2
repo. You can use org.eclipse.cdt.platform-feature, that is
the smallest feature that includes org.eclipse.cdt.core [1].
When you export the feature, include a P2 repo:
eclipse -application "org.eclipse.cdt.core.GeneratePDOM"
-data workspace -noSplash -consoleLog [... options ...]
I hope that this was helpful and you will consider
contributing back your improvements to GeneratePDOM.
Jonah
[0] In theory this should work adding the jar to the
dropins directory. That seems hit and miss as reported by
others on this mailing list.
[1] You can try to write your own feature by
using org.eclipse.cdt.platform-feature as a starting point and
including only the minimum necessary, probably
org.eclipse.cdt.core as a plug-in and the
org.eclipse.cdt.native feature.
[2] You may have trouble installing this into an Eclipse
installation that already has CDT in it due to version issues.
Hello
everbody,
I'm struggling with the following problem. Maybe someone can
point me in
the right direction.
There is this Application "GeneratePDOM" (in
core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/export/GeneratePDOM.java)
which can be used from the terminal. The following command can
be
executed from inside the eclipse directory (where the
subdirectory
"plugins" remains):
java -jar
plugins/org.eclipse.equinox.launcher_1.5.500.v20190715-1310.jar
-application "org.eclipse.cdt.core.GeneratePDOM" -source
/home/sadik/project-root/DemoProject -target
/home/sadik/project-root/DemoProject/Index.pdom -id
test_index01 [ ...
maybe more options]
This works. I modified the application so that it suffices my
needs,
like adding a few options. Now I want to use this modified
Application
to be launched with the equinox launcher. What is the easiest
way to do
this? Do I need to create a standalone eclipse?
I tried to simply export the org.eclipse.cdt.core plugin and
replace the
jar file in plugins. My hope was that the equinox launcher
will launch
GeneratePDOM from this jar file, but that's not what's
happening.
Thank you in advance for any help!
Sadik
--
Sadik Özoguz
Verified Systems International GmbH
Geschäftsführerin Dr.-Ing. Cornelia Zahlten
HR B 18341 Amtsgericht Bremen
Am Fallturm 1
28359 Bremen, Germany
mail: soezoguz@xxxxxxxxxxx
tel: +49 421 572 04-286
fax: +49 421 572 04-22
http://www.verified.de
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or
unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev
--
Sadik Özoguz
Verified Systems International GmbH
Geschäftsführerin Dr.-Ing. Cornelia Zahlten
HR B 18341 Amtsgericht Bremen
Am Fallturm 1
28359 Bremen, Germany
mail: soezoguz@xxxxxxxxxxx
tel: +49 421 572 04-286
fax: +49 421 572 04-22
http://www.verified.de