Book a Demo

Author Topic: Directory structure during code generation  (Read 6599 times)

MMI

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Directory structure during code generation
« on: February 07, 2002, 06:29:12 am »
EA allows you to generate code from a particular package starting point within the design hierarchy. However, the tool does not provide the ability to create code into a corresponding file directory structure. The only way to do this is to manually create the directories, and then to set the file generation path for each class. This is far from ideal, particularly when you have a lot of classes!

Can EA be modified such that you can define a code gen directory for a root package? Then, when you generate code for that package, the file system directory structure generated reflects the package nesting within EA.

Thanks,

Mike.

sparks

  • EA Administrator
  • EA User
  • *****
  • Posts: 691
  • Karma: +4/-2
    • View Profile
Re: Directory structure during code generation
« Reply #1 on: February 08, 2002, 04:13:45 am »
Hello,

What you have suggested should not be too hard to implement.  We will investigate what would be required to include this feature, and determine when we could incorporate it into a future version of Enterprise Architect.  Thanks for the feedback.

Paul Mathers

Julian Harris

  • Guest
Re: Directory structure during code generation
« Reply #2 on: February 14, 2002, 05:10:32 am »
Hi all!

I've always been a fan of Enterprise Architect... but there's one thing that's been a brick wall for me today... why on -earth- is the relationship between EA and the file system so difficult?

I've been wrestling with EA 3.1 for several hours today and I can't for the life of me find how to generate code properly. Here are my problems:

a) the documentation refers to menus that don't exist e.g. Reference/Code Generation Defaults
b) I have no idea how to specify the target language, the interface just makes no sense at all.
c) when I try and do a generation, having given up trying to find out how to change the paths, I'm stuffed -- the paths seem to be that of a Sparx developer and it just says 'error pathname not found'. Heeeeeelp!


Here's a suggestion.

Project options:Code generation

Language: [popup with java etc, choose one]
Source directory: [choose one here] [ ] relative to project (checkbox)

how's that?