Book a Demo

Author Topic: miscellaneous 'artifacts'  (Read 2071 times)

sgsonter

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
miscellaneous 'artifacts'
« on: November 15, 2006, 05:26:11 pm »
Our projects have a wide variety of 'artifacts' distributed throughout the source tree.
These include non-program resources such as .jpeg, .gif, .properties and .xml files for data and configuration resources.
Artifacts also include 'programs' in .cmd, sh. .bat, .jsp, .js and .css. - but I'd prefer not to define an individual new 'languages' for reverse engineering each of these.
I'm interested in accurately recording these artifacts for PM purposes.
Is there a simple way to reverse engineer these 'artifacts' into the logical model?
I'm thinking about the possibility of defining a basic custom language for 'artifacts'  that adds artifacts (with "file links" to the source tree) into the model hierarchyand into logical model diagrams. all of the above filename suffixes should be acceptable.
Has anyone tried anything similar? What is the minimum language definition that would suit heterogeneous 'artifacts'?

Simon

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: miscellaneous 'artifacts'
« Reply #1 on: November 15, 2006, 07:58:40 pm »
EA already has exactly(?) what you want.

First, open the options dialog (Tools | Options) to the Source Code Engineering page.

Click the 'Component Types' button.

Now specify how you want each different file type coming in.  eg. Import all files with the .css extension as a Component with the stereotype 'stylesheet'.

Close up the options and open the Import Source Directory dialog.  This dialog now lists the extensions that you defined above.  If you check 'Import defined components' and click enter, after doing the normal source import EA will create the artifacts you requested for each file matching a definition you created.

sgsonter

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: miscellaneous 'artifacts'
« Reply #2 on: November 15, 2006, 08:43:44 pm »
Thanks - works great!!