Discussion:
Tycho and Custom Eclipse Builders
(too old to reply)
Phil Denis
2018-08-09 16:39:35 UTC
Permalink
I have written an extensive SDK of Eclipse plugins using various extension points, including editors, views, and most importantly builders (APT - Java 5 mirror api) and Eclipse IncrementalProjectBuilders. Third party developers download and install my SDK into their Eclipse to gain this functionality. The APT annotation processor generates additional Java source files using org.eclipse.jdt.core.dom to the .apt_generated folder. The IncrementalProjectBuilders generate web resources (e.g. json files) to the bin/ directory.

All of this works great when you are running Eclipse. I've been using Buckminster for headless builds via Jenkins. I install the headless version of the SDK into Buckminster's Eclipse instance and it runs my builders just like it does when I'm running Eclipse, using PDE build.

Since Buckminster has been replaced, I'm trying to upgrade to Tycho. I've followed some tutorials and I can build a simple update site with basic features and plugins. However .. I'm wondering if (and how) it is possible to install my SDK plugins into the embedded Eclipse instance that Tycho uses for building, and have it invoke the APT and IncrementalProjectBuilders when it builds projects. If I could either modify the embedded Eclipse that Tycho uses, or point Tycho to an existing (pre-configured) Eclipse installation, this seems like it should be possible.

Any ideas?

Thanks!
Phil
Pascal Rapicault
2018-08-09 18:02:20 UTC
Permalink
The eclipse-run should be able to help you
https://www.eclipse.org/tycho/sitedocs-extras/tycho-eclipserun-plugin/eclipse-run-mojo.html.
You may need to create your own application to invoke your builders and
pass additional parameters but it should help.
However, know that the maven projects being built will not be imported
as workspace projects.

Alternatively if you only need to execute APT processors, you may want
to look at https://code.google.com/archive/p/maven-annotation-plugin/ or
https://github.com/querydsl/apt-maven-plugin

HTH

Pascal
Post by Phil Denis
I have written an extensive SDK of Eclipse plugins using various
extension points, including editors, views, and most importantly
builders (APT - Java 5 mirror api) and Eclipse
IncrementalProjectBuilders.  Third party developers download and
install my SDK into their Eclipse to gain this functionality.  The APT
annotation processor generates additional Java source files using
org.eclipse.jdt.core.dom to the .apt_generated folder. The
IncrementalProjectBuilders generate web resources (e.g. json files) to
the bin/ directory.
All of this works great when you are running Eclipse.  I've been using
Buckminster for headless builds via Jenkins.  I install the headless
version of the SDK into Buckminster's Eclipse instance and it runs my
builders just like it does when I'm running Eclipse, using PDE build.
Since Buckminster has been replaced, I'm trying to upgrade to Tycho.
 I've followed some tutorials and I can build a simple update site
with basic features and plugins.  However .. I'm wondering if (and
how) it is possible to install my SDK plugins into the embedded
Eclipse instance that Tycho uses for building, and have it invoke the
APT and IncrementalProjectBuilders when it builds projects.  If I
could either modify the embedded Eclipse that Tycho uses, or point
Tycho to an existing (pre-configured) Eclipse installation, this seems
like it should be possible.
Any ideas?
Thanks!
Phil
_______________________________________________
tycho-user mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user
Continue reading on narkive:
Loading...