Book a Demo

Author Topic: How to transform with relative path  (Read 2948 times)

rgevaerd

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
How to transform with relative path
« on: November 26, 2007, 06:22:01 am »
  Hi,

 I'm starting to try EA, and maybe this is just a configuration I did not find.

 I have a class diagram and some classes in a package, let's say in a path a/b/c/model.
 I choose the package 'model' and to transform using the Java pre-built transformation, and choose a destination package 'dest/design'. As a result of the transformation, the path dest/design/Java Model/a/b/c/model is created. I do not want the path a/b/c to be generated, only relative to the package I had chosen.
 Something like dest/design/Java Model/model or dest/design/model would be fine.
 Is there any easy way for the transformation to use relative path instead of absolute path, so the result is like the described above?

  Thanks,
  Rodrigo.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: How to transform with relative path
« Reply #1 on: November 26, 2007, 11:36:16 am »
The transformation is copying the namespace.  To stop this you can set a namespace root.  (Context menu in project browser | Code Engineering | Set Namespace root.)

rgevaerd

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: How to transform with relative path
« Reply #2 on: November 27, 2007, 04:40:35 am »
Thanks!