Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Tycho and "Imported Packages"

Zitat von "Sievers, Jan" <jan.sievers@xxxxxxx>:

1. is package org.eclipse.xtend2.lib exported by bundle org.eclipse.xtext.xtend2.lib without restriction (x-internal, x-friends,...)?

I think so. Here is the manifest:

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.7.1
Bundle-Vendor: Eclipse Modeling
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-Name: Runtime library for Xtend
Bundle-SymbolicName: org.eclipse.xtend2.lib
Require-Bundle: org.eclipse.xtext.xbase.lib;bundle-version="2.2.1";visibility:=reexport
Created-By: 1.5.0_22-b03 (Sun Microsystems Inc.)
Bundle-Version: 2.2.1.v201112130541
Export-Package: org.eclipse.xtend2.lib
Bundle-ManifestVersion: 2

2. did you declare Import-Package: org.eclipse.xtend2.lib in your bundle manifest?

Yes:

Import-Package: org.apache.log4j,
 org.apache.commons.logging,
 org.eclipse.xtext.xbase.lib,
 org.eclipse.xtext.xtend2.lib,
 org.eclipse.xtend2.lib

If the answer to both is yes, this could be a bug and we need a sample project to analyse.

Okay, that might be a problem ... anything I could do to debug this?

It would be great if I could run "mvn dependency:tree" on a Tycho module :-)

Regards,

-----Original Message-----
From: tycho-user-bounces@xxxxxxxxxxx [mailto:tycho-user-bounces@xxxxxxxxxxx] On Behalf Of Aaron Digulla
Sent: Freitag, 30. März 2012 10:29
To: tycho-user@xxxxxxxxxxx
Subject: [tycho-user] Tycho and "Imported Packages"

Hello,

 From the documentation, I gathered that Tycho supports "Imported
Packages" but when I compile Xtext 2.2 projects, I get this error:

1. ERROR in xxx.java (at line 43)
         import org.eclipse.xtend2.lib.StringConcatenation;
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Access restriction: The type StringConcatenation is not accessible due
to restriction on classpath entry
$HOME/.m2/repository/p2/osgi/bundle/org.eclipse.xtext.xtend2.lib/2.2.1.v201112130541/org.eclipse.xtext.xtend2.lib-2.2.1.v201112130541.jar

When I add the plugin org.eclipse.xtext.xtend2.lib to "Required
Plug-ins", the error goes away.

Why?

Regards,

--
Aaron "Optimizer" Digulla a.k.a. Philmann Dark
"It's not the universe that's limited, it's our imagination.
Follow me and I'll show you something beyond the limits."
http://www.pdark.de/                   http://blog.pdark.de/
_______________________________________________
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





--
Aaron "Optimizer" Digulla a.k.a. Philmann Dark
"It's not the universe that's limited, it's our imagination.
Follow me and I'll show you something beyond the limits."
http://www.pdark.de/                   http://blog.pdark.de/


Back to the top