Book a Demo

Author Topic: Sequence Diagram Generation  (Read 3126 times)

davisford

  • EA User
  • **
  • Posts: 63
  • Karma: +0/-0
    • View Profile
Sequence Diagram Generation
« on: November 22, 2005, 01:21:29 pm »
Quick question: If I have already built my source (e.g. have java class files), and simply want to run it and record the stack trace to generate a sequence diagram -- is this possible within EA, or do I have to also build within EA.

The problem I am trying to solve is that I have a significantly large source project with a semi-complex build procedure -- setting this up in EA to build might take a while.  What I am really interested in is just capturing a stack trace and generating a sequence diagram from code that is ready to run.

Regards,
Davis

thomaskilian

  • Guest
Re: Sequence Diagram Generation
« Reply #1 on: November 22, 2005, 11:32:08 pm »
Sounds like a task for the automation (read a file and create a sequence diagram). AFAIK there is nothing at hand to do this with EA native.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Sequence Diagram Generation
« Reply #2 on: November 23, 2005, 01:19:45 pm »
Although the dialog forces you to have a build command, you don't need to build from EA to run the debug and record the stack trace.  Just set up the run command in the way you want and then do a debug run.

As for setting up the build script in EA.  It should be possible to just get EA to call a batch file, ant script or whatever else normally does your build.

greggpatton

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Sequence Diagram Generation
« Reply #3 on: November 23, 2005, 02:26:11 pm »
How do I add jars to my classpath for running or debugging a java app?

I also noticed that a command window gets launched when I run a java app and something gets printed to it, but it goes away to fast for me to read what it says.  Do error messages get put in a log file somewhere?

I was able to get it to build with an ant script.  "C:\apache-ant-1.6.1\bin\ant.bat debug_build" worked for me.

Thanks.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Sequence Diagram Generation
« Reply #4 on: November 23, 2005, 02:55:53 pm »
As an addition to my previous post, you need to have imported your code into the model before you can do a debug.  Importing from the jar files won't work.

Add jars to your classpath using the same command line arguments you would use on the command line.