Book a Demo

Author Topic: Controlling source files  (Read 3908 times)

JimmyJazz

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Controlling source files
« on: February 18, 2008, 02:42:04 pm »
I am new code generation in EA.  Can anyone advise me how to cause the source code of all the classes in a package to be generated into a single physical file?

thomaskilian

  • Guest
Re: Controlling source files
« Reply #1 on: February 18, 2008, 08:08:41 pm »
AFAIK this is not directly possible. Use an add-in and `cat * merged_file`

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Controlling source files
« Reply #2 on: February 19, 2008, 07:55:53 am »
Well, EA won't automatically set the filenames of a package to the same file.  However, if you set the filenames (either manually using the properties window Alt+1, or using automation) and do a package generation EA will generate all classes to the file.

JimmyJazz

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Controlling source files
« Reply #3 on: February 19, 2008, 03:01:43 pm »
Thanks Simon, where do I set the file name using automation?  Do I set the fileName and FileExtension properties in the File Macro?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Controlling source files
« Reply #4 on: February 19, 2008, 03:30:24 pm »