On 14/12/2012 4:11 PM, Hendrik Eeckhaut wrote:
> I am trying to use Xcore and ran into a problem generating the Java
> model classes at the location I want.
>
> I have one plugin "myplugin.bootstrap" that contains the Xcore file. I
> want to have the generated sources in another plugin "myplugin". So I
> specified
> @GenModel(
> modelDirectory="/myplugin/src-gen",
> ...
> )
>
> The ecore file is generated at the expected location.
What do you mean by the "ecore file"?
> However, the Java classes are generated in
> "/myplugin.bootstrap/src-gen" instead.
I tried this locally, and it worked okay for me. Perhaps I fixed
something in the 2.9 stream... You're using the 2.8.x stream?
>
> How can I change this location?
>
> Thanks,
> Hendrik.
There's a GenPackage property for "Initialize by Loading". When that's
true, instead of generating a very large XyzPackageImpl you'll get a
much smaller one that loads the package from the serialized *.ecore in
that same package/folder. It defaults to true for large models that are
likely to exceed Java's byte code limit for methods.
On 18/12/2012 4:22 AM, Hendrik Eeckhaut wrote:
>> What do you mean by the "ecore file"?
>
> I missed that question and now think this might be a bug.
> In the mymodel.impl in the myplugin plugin, a mymodel.ecore file is
> generated.
>
> Hendrik.