eclipse-lyo / lyo.designer

lyo.designer
Eclipse Public License 2.0
12 stars 10 forks source link

Domain classes are generated at the wrong time and the wrong path #20

Open berezovskyi opened 6 years ago

berezovskyi commented 6 years ago

When the resource shapes have been defined in an external domain spec from the toolchain spec, regeneration of a single adaptor causes the domain spec of the service in the adaptor to be generated in the path as configured for the toolchain, and not the external domain spec.

Expected: no generation of the external domain spec takes place during the code generation of a single adaptor.

yashkhatri commented 6 years ago

@berezovskyi Can you please provide a sample project and steps to reproduce this issue?

berezovskyi commented 6 years ago

sure

steps:

  1. import 2 model-* projects into Eclipse
  2. See https://github.com/EricssonResearch/scott-eu/blob/b-robot-emulator/lyo-services/model-domain-pddl/generator.properties. The right output folder for the PDDL domain spec code is https://github.com/EricssonResearch/scott-eu/tree/b-robot-emulator/lyo-services/domain-pddl
  3. open the Toolchain model, the Toolchain diagram. Right click on the Twin and generate the code.

here is the "wrong" folder being generated:

image

jadelkhoury commented 6 years ago

@yashkhatri this is most likely not a bug, but a "feature". It is very confusing how the generator treats composition of modls into file. I sugest we setup a workshop to decide how it should work before we fix anything.