Book a Demo

Author Topic: Changing the source path for code synchronizing  (Read 5218 times)

helmut

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
  • Helmut Steinke ist hier
    • View Profile
Changing the source path for code synchronizing
« on: September 07, 2005, 01:24:23 pm »
Hello,
how can I change the the source path of all classes of a package in an easy way.
Helmut

thomaskilian

  • Guest
Re: Changing the source path for code synchronizin
« Reply #1 on: September 07, 2005, 01:45:45 pm »
By hand :P or you write a macro :-/

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Changing the source path for code synchronizin
« Reply #2 on: September 07, 2005, 03:39:44 pm »
It sounds like a problem that EAs local paths functionality is for.

If all those classes have some common part (prefix) in their filename.

Open the local paths dialog.
Enter the old path, any id and the language they apply to.
Click Apply Path.
Change the path to the new path.
Click Expand Path.
You may then want to delete the path.

The result of that will be all classes with that path in their filename will have changed to the new path.

Hope it's what you want.

Simon

helmut

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
  • Helmut Steinke ist hier
    • View Profile
Re: Changing the source path for code synchronizin
« Reply #3 on: September 07, 2005, 10:27:35 pm »
Quote
It sounds like a problem that EAs local paths functionality is for.

If all those classes have some common part (prefix) in their filename.

Open the local paths dialog.
Enter the old path, any id and the language they apply to.
Click Apply Path.
Change the path to the new path.
Click Expand Path.
You may then want to delete the path.

The result of that will be all classes with that path in their filename will have changed to the new path.

Hope it's what you want.

Simon


Hello Simon
thank you, this is the solution. But the type field does not support PHP. But I think I can use any other programming language because this feature substitutes only the path.
I will try it out.
Helmut  

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Changing the source path for code synchronizin
« Reply #4 on: September 08, 2005, 03:45:21 pm »
I'm pretty sure the type is used actually...

Here's a workaround until we release our next major version which includes any language in the list.

Right click on a package in the tree view.
Select Code Engineering | Reset Options for this package.
Use that dialog to convert everything to C++, (or something else that is in the local paths).
Then use the local paths as I described in my previous post.
Go back and convert everything back to PHP.

Done.  8)

Not ideal, but it should still be easier than manually renaming them.

Simon

helmut

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
  • Helmut Steinke ist hier
    • View Profile
Re: Changing the source path for code synchronizin
« Reply #5 on: September 09, 2005, 11:40:14 pm »
Thank you, it works.
Helmut

AdamHearn

  • EA User
  • **
  • Posts: 58
  • Karma: +0/-0
    • View Profile
Re: Changing the source path for code synchronizin
« Reply #6 on: September 26, 2005, 01:10:31 am »
Simon,

Will there be an 'easier' way to set the code generation path for non-default language types (i.e. the ones presented in the drop-down list on the Local Paths dialog)?

We've a couple of custom language types (resx, xml) which are spread around the model (one to a few per package for example) and performing a manual update of these as described would be cumbersome.

Thanks in advance, Adam

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Changing the source path for code synchronizin
« Reply #7 on: September 26, 2005, 03:45:10 pm »
Yes. The next major version of EA should include the possiblity of setting local paths for all languages in your model, plus DDL and XMI.

Simon