Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Problem with dependency on classes exported by a fragment (using org.eclipse.swt)

The code that automatically adds SWT fragment to project dependencies is
[1]. Tycho development environment setup is described in [2]. Please use
tycho-dev mailing list for tycho developer questions.

[1] http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/tree/tycho-bundles/org.eclipse.tycho.p2.resolver.impl/src/main/java/org/eclipse/tycho/p2/impl/resolver/ProjectorResolutionStrategy.java#n127

[2] http://wiki.eclipse.org/Developing_Tycho

--
Regards,
Igor

On 12-02-01 4:48 AM, Istvan Szenkovszky wrote:
OK, if you show me where to look, then I can try to debug it later this
week or next week when i have some free time.

Regards,
Istvan


31/01/2012 15:31 keltezéssel, Igor Fedorenko írta:
We have to workaround SWT bug 361901 [1] and apparently this causes you
problems. I don't have the time to troubleshoot this now, but I can show
you the relevant code in tycho if you want to debug this yourself.

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=361901

--
Regards,
Igor

On 12-01-31 2:52 AM, Istvan Szenkovszky wrote:
Hi Igor,

we are making a port of the SWT library. And we wanted to keep the
'org.eclipse.swt' bundle symbolic name so users won't have to change
their bundle manifest if they want to use our implementation of the swt
library.
We knew we could rename it like RAP did, but then if the user uses
'Require-Bundle' then he/she would have to change 'org.eclipse.swt' to
our bundle symbolic name everywhere.

Regards,
Istvan


31/01/2012 03:49 keltezéssel, Igor Fedorenko írta:
Can you explain what are you trying to do? More specifically, why
one of
your projects has 'org.eclipse.swt' bundle symbolic name?

--
Regards,
Igor

On 12-01-24 2:00 PM, Istvan Szenkovszky wrote:
Yes, i get the exact same result building it with Tycho
0.14.0-SNAPSHOT
as with 0.13.0.

Regards,
Istvan

24/01/2012 15:34 keltezéssel, Igor Fedorenko írta:
Does the problem occur with Tycho 0.14.0-SNAPSHOT?

--
Regards,
Igor

On 12-01-24 8:53 AM, Istvan Szenkovszky wrote:
Hi users!

I have some problems with building my projects with Tycho and i
don't
know whether it's a bug or not and if it's a bug then has it been
reported somewhere or not. This my first time reporting such issue
so if
you need more details please let me know what else you need.
So the case is that i'm using org.eclipse.swt plugin as a host of a
fragment (org.eclipse.swt.fragment) and there is a 3rd project
(myproject) which has a dependency exported by the fragment. When i
try
to build it with Tycho 0.13.0 (mvn clean package) i got an error
message:

...
[ERROR] The projects in the reactor contain a cyclic reference: Edge
between
'Vertex{label='myproject:org.eclipse.swt:1.0.0-SNAPSHOT'}' and
'Vertex{label='myproject:org.eclipse.swt.fragment:1.0.0-SNAPSHOT'}'
introduces to cycle in the graph
myproject:org.eclipse.swt.fragment:1.0.0-SNAPSHOT -->
myproject:org.eclipse.swt:1.0.0-SNAPSHOT -->
myproject:org.eclipse.swt.fragment:1.0.0-SNAPSHOT -> [Help 1]
...

(See the first.zip for sources and log.txt in myproject.parent)

But if i change the version to 0.12.0 then the build runs
successfully.

Question: Is there a way to get it built with 0.13.0 and later?

Another strange behavior i found:

If i change the name of the org.eclipse.swt project to anything
else the
build fails complaining about it couldn't resolve the import from
the
fragment. It fails both with 0.13.0 and 0.12.0, so in this case i
have
to add in myproject a line to the build.properties:
jars.extra.classpath = platform:/plugin/org.eclipse.swt.fragment

then it works again with 0.13.0 and 0.12.0.

Thank You in advance.
Istvan


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



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



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


Back to the top