Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] tycho-compiler vs tycho-packaging when building multiple jars with build.properties

First and foremost, as a general rule avoid nested jars, they are evil [1].

If you absolutely have to use nested jars, there are two ways to do
that. Pre-built nested jar can be included in project source tree or
nested jar can be produced during project build. In both cases packaging
plugin needs to be able to find them and therefore in both cases nested
jars are located relative to project basedir.

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=111238#c11

--
Regards,
Igor

On 2014-03-04, 12:43, Justin Georgeson wrote:
When I use the source.<lib> properties in build.properties the
tycho-compiler plugin outputs to
${project.build.directory}/<lib>-classes, but
tycho-packaging:package-plugin outputs to ${basedir}/<lib>. Is that
because the bin.includes are relative to ${basedir}? I like to
standardize on having all build-process generated output created under a
known folder, so that developers universally know they can delete that
folder to force a full clean rebuild. But this inconsistency between
compiler and packaging is making that configuration a bit cumbersome. I
can use the additionalFileSets instead of bin.includes to include the
jar files in my plugin, but using “source.target/mylib.jar” means I then
need to use “${project.build.directory}/target/…” when staging files for
each source.<lib> in my pom.xml, because there is no bin.includes.<lib>
I can put in my build.properties (at least not according to
help.eclipse.org).
So while I _/can/_ get it configured and working, the inconsistency
between tycho-compiler and tycho-packaging is a bit cumbersome to work
with (if keeping all your build output under the target folder is
important to you). Am I overcomplicating the configuration somewhere?
Can there be better consistency in a future release?
------------------------------------------------------------------------
This e-mail, including any attached files, may contain confidential and
privileged information for the sole use of the intended recipient. Any
review, use, distribution, or disclosure by others is strictly
prohibited. If you are not the intended recipient (or authorized to
receive information for the intended recipient), please contact the
sender by reply e-mail and delete all copies of this message.


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user



Back to the top