Providing library for an XText IDEA plugin [message #1743806] |
Mon, 19 September 2016 14:39  |
Eclipse User |
|
|
|
Today I reached the chapter "Scoping" in the book of Lorenzo (2nd edition). I'm trying to provide a custom library for my IDEA plugin but so far did not manage to make anything work. The chapter is very much Eclipse-oriented and does not cover my particular tool set:
IDEA 20016.2.4
XText 2.10
Gradle 3.0
I develop under IDEA and build a plugin for IDEA.
I'm using the default Gradle source layout which gives the following tree:
flax.parent
flax
flax.ide
flax.idea
flax.web
I did the following:
a) Created a flax.parent/flax/src/main/lib.flax file containing:
package flax.lang
class Object {}
b) Modified the flax/build.gradle file to include the following:
jar {
manifest {
attributes("Export-Package":"flax.lang")
}
}
c) Use my plugin via the "runIdea" task and create the following file:
class Youpi extends flax.lang.Object {}
Unfortunately IDEA complains that "flax.lang.Object" is an undefined symbol.
Am I missing something obvious?
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05810 seconds