Book a Demo

Author Topic: generate multiple classes in single unit  (Read 3390 times)

azemerov

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
generate multiple classes in single unit
« on: March 26, 2004, 11:57:05 am »
Hi,

How can I generate single output  file containing set of my classes (say all classes in my package)?

I want to generate single file wich contains list of my classes.

My "File" template contains macro
 classes=%list="Class" @separator="," @indent=""%
My "Class" template is
 %className%

But EA generates each class in separated unit. And each unit contains only single class.

Thank you

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: generate multiple classes in single unit
« Reply #1 on: March 29, 2004, 09:33:07 pm »
Hi azemerov,

Your problem is probably that your classes have all got the filename set.  If they don't have the filename set then when you generate package source code (without checking the option to auto generate files) it will prompt you for a filename, your class list should go into that file.

Simon McNeilly

azemerov

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: generate multiple classes in single unit
« Reply #2 on: March 30, 2004, 06:39:26 am »
Quote
Hi azemerov,

Your problem is probably that your classes have all got the filename set.  If they don't have the filename set then when you generate package source code (without checking the option to auto generate files) it will prompt you for a filename, your class list should go into that file.

Simon McNeilly


The problem is EA asks me for filename for EACH class in my pakage. If I provide the same name the latest class overrides results of previous class generation. If I press cancel on filename dialog it doesn't generate this class at all.

Alexander Zemerov