Book a Demo

Author Topic: change code generation path of package  (Read 4651 times)

el5022

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
change code generation path of package
« on: December 07, 2009, 08:17:31 pm »
Hey,

I generated a class model from code based on a working directory on my local disc. This working directory contains version 1 lets say.
We're now moving towards version 2 and therefore we have a different working directory. Question is, how can I change the complete model to generate code into a different directory (for version 2) than were it was created from?

hope this was a bit clear.

grtz

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: change code generation path of package
« Reply #1 on: December 07, 2009, 08:34:17 pm »
Have you checked the paths.txt file?
Just a guess, but I seem to remember that had something to do with it.
The file can be found in the "<local profile>\Application Data\Sparx Systems"

Geert

el5022

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: change code generation path of package
« Reply #2 on: December 07, 2009, 09:20:30 pm »
I found the file you specified, however this contains the path of the Version Control location of the model itself, not from the code generated by the model.

When I select the "generate code" option for 1 class, I see the path and I can even change this to my new location. However, I do not fancy doing this for the hundreds of classes in the model at the moment. So, is there somewhere a 'root' path of these that can be changed in 1 go?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: change code generation path of package
« Reply #3 on: December 07, 2009, 09:37:27 pm »
Hmm, if it's not in there then that might be the source of the problem.
look here: http://www.sparxsystems.com/uml_tool_guide/code_engineering/localpathdlg.html

Geert

el5022

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: change code generation path of package
« Reply #4 on: December 07, 2009, 10:08:42 pm »
gr8, this is exactly what I was looking for! It is somehow implemented strangly, but it works.

thnx again Geert, you are becoming my personal EA hero here :)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: change code generation path of package
« Reply #5 on: December 07, 2009, 10:43:09 pm »
Quote
thnx again Geert, you are becoming my personal EA hero here :)
Whohoo  ;D