Book a Demo

Author Topic: Code generation Path  (Read 3291 times)

cable000

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Code generation Path
« on: December 20, 2008, 09:21:40 am »
EA Version: 7.1.834

We have a fairly large base of code in C++ and java. Is their a way to specify relative to an environment variable the output for the source code.

Given a directory structure something like this ---

ROOT/src/Entity/Entity.java
ROOT/src/Capability/Capability.java
ROOT/src/ResourceManager/ResourceManager.java

I defined the 'Default Source Directory' option in Tools->Options-Java to be %ROOT%.


If the environment variable ROOT=C:\dev but another developer wants to check out the model and they define their ROOT=C:\work.

I tried to simulate this by closing EA and resetting the ROOT environment variable but when I restart EA and I go to generate the code it still wants to generate based off of the old environment variable location ( e.g. an absolute path )

Is their a way to set EA up so that the path to the source files it is generating are using a relative path?

Thanks


Takeshi K

  • EA User
  • **
  • Posts: 630
  • Karma: +43/-1
    • View Profile
    • Sparx Systems Japan
Re: Code generation Path
« Reply #1 on: December 21, 2008, 05:27:30 am »
Maybe EA's 'Local Paths' feature helps you.

In detial, see the EA's help file, 'Local Paths' page.

Hope this helps.
--
t-kouno

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Code generation Path
« Reply #2 on: December 22, 2008, 08:29:22 am »
EA doesn't use the environment variables for local paths.  As was already said, look up 'Local Paths' in EA's help.
« Last Edit: December 22, 2008, 08:29:51 am by simonm »

cable000

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Code generation Path
« Reply #3 on: December 23, 2008, 06:37:18 am »
Yes I believe this is what I'm looking for. Thanks!