Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-dev] Multiple output folders & Sonar/Findbugs

the org.apache.maven.MavenProject model supports one classes output folder only.

Tycho does expose multiple classes output folders (in case of nested jars) via 

org.eclipse.tycho.core.osgitools.project.EclipsePluginProject.getOutputJars() 

but I don't think this is something sonar can / should rely on.

IMHO this boils down to a maven project model restriction

1 module = 1 output folder

which can't be mapped correctly to OSGi and nested jars.

Regards,
Jan

-----Original Message-----
From: tycho-dev-bounces@xxxxxxxxxxx [mailto:tycho-dev-bounces@xxxxxxxxxxx] On Behalf Of Igor Fedorenko
Sent: Mittwoch, 24. Juli 2013 16:51
To: tycho-dev@xxxxxxxxxxx
Subject: Re: [tycho-dev] Multiple output folders & Sonar/Findbugs

It is possible to produce different nested jars from different source
directories. I don't recall if Tycho exposes per-nested-jar classes
directory via project properties, but this seems like a reasonable
enhancement request if it does not.

--
Regards,
Igor

On 2013-07-24 6:30 PM, Jeff MAURY wrote:
> Michael,
>
> I don't get your point. Do you refer to the fact that the bundle has
> several source folders and each of them has a specific output folder ?
> In that case, I suppose that Tycho will generate all the classes in the
> standard target/classes folder, no ? In that case, I don't see why the
> Findbugs plugin will be in trouble. Unless I missed something.
>
> Jeff
>
>
> On Wed, Jul 24, 2013 at 4:02 PM, Mickael Istria <mistria@xxxxxxxxxx
> <mailto:mistria@xxxxxxxxxx>> wrote:
>
>     Hi all,
>
>     Some context: I'd like to run Findbugs analysis on Platform code,
>     and I'm having an issue with some Platform bundle building nested
>     jars. Cf https://bugs.eclipse.org/bugs/show_bug.cgi?id=413047
>
>     As far as I know of Maven, it seems to me that it only support a
>     single output folder for classes, and that the Tycho way to have
>     multiple output folder is totally independent from Maven
>     conventions? Am I right?
>     If yes, that would mean that the Findbugs plugin has no way to know
>     that there are other class folders, so no chance that it could
>     consume them without telling it. However, I'm wondering whether
>     Tycho uses a "standard" way to deal with this, which could be
>     consumed by Sonar/Findbugs plugins. I'm thinking that maybe those
>     directories are stored in a Maven session/project attribute that
>     could be consumed by Findbugs.
>
>     Any hint?
>     --
>     Mickael Istria
>     Eclipse developer at JBoss, by Red Hat <http://www.jboss.org/tools>
>     My blog <http://mickaelistria.wordpress.com> - My Tweets
>     <http://twitter.com/mickaelistria>
>
>     _______________________________________________
>     tycho-dev mailing list
>     tycho-dev@xxxxxxxxxxx <mailto:tycho-dev@xxxxxxxxxxx>
>     https://dev.eclipse.org/mailman/listinfo/tycho-dev
>
>
>
>
> --
> Jeff MAURY
>
>
> "Legacy code" often differs from its suggested alternative by actually
> working and scaling.
>   - Bjarne Stroustrup
>
> http://www.jeffmaury.com
> http://riadiscuss.jeffmaury.com
> http://www.twitter.com/jeffmaury
>
>
> _______________________________________________
> tycho-dev mailing list
> tycho-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-dev
>
_______________________________________________
tycho-dev mailing list
tycho-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-dev


Back to the top