Book a Demo

Author Topic: Java Generation Requirement  (Read 3967 times)

ravi11

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Java Generation Requirement
« on: February 14, 2004, 08:52:35 am »
greetings,

i have been trying to play with the code template framework and got to some level of customization.

i have a requirement where for a UML class diagram i want to automatically generate multiple files (an interface, class and an abstract class). i might eventually even want to generate an xml alongwith the other files.

(1) any pointers on how to gen. multiple files in a single command.

(2) is there a way to generate code from a command line given the .EAP file

thanks much
ravi

benc

  • EA Administrator
  • EA User
  • *****
  • Posts: 200
  • Karma: +0/-0
    • View Profile
Re: Java Generation Requirement
« Reply #1 on: February 15, 2004, 05:23:24 pm »
Hello Ravi,

Unfortunately this can't be done yet. As always, we appreciate these requests and note them for possible inclusion into future versions of EA.

Regards,
Ben

dnice

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Java Generation Requirement
« Reply #2 on: February 17, 2004, 12:40:10 am »
Hello,

I've had similar code generation requirements.  It is often the case that I need to generate many source files (mainly Java) from a single UML class or, indeed, generate a single source file from many UML classes and other UML artefacts.  My solution to this has been to ignore the templating mechanism and use the automation interface, which gives me complete freedom to generate whatever source files I like.  Going this route also means that I can invoke the generator from the command line (or Ant).  The main downside to this is that it took a bit of experimentation to get Java to work with the automation interface.  

ravi11

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Java Generation Requirement
« Reply #3 on: February 18, 2004, 06:12:02 am »
while this feature is built into EA, an excellent alternate way to generate files is XDoclet. of course this would mean there would be more @xdoc tags in your generated files to manage. for the meantime this is a good way to generate interfaces, impl classes during ant build after EA generates the initial classes.

RK

pwhite

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Java Generation Requirement
« Reply #4 on: August 14, 2004, 11:02:26 pm »
I recently started evaluating EA and the ability to generate multiple files from a single UML class would make purchasing EA a no-brainer for me. It would be really nice to be able to generate all the JSPs required to handle the CRUD for any particular domain object in my model.

I noticed the last reply on this topic was in February and I haven't found anything that would indicate that this feature has been implemented since then. Can anyone confirm whether or not this has already been implemented or if it's in the works? Thanks!