Book a Demo

Author Topic: Import Source Directory problem  (Read 3887 times)

henrique.brandao

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Import Source Directory problem
« on: November 26, 2008, 02:07:36 am »
Im trying to synchronize package with source code using the "Import Source Directory" command. This is cloning my classes every time I call it. If I select the option "Overwrite existing classes" or "Synchronize existing classes" the effect is the same.

Id like to know the criteria that EA use to add or overwrite an existing class.

Thanks


Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Import Source Directory problem
« Reply #1 on: November 26, 2008, 08:19:10 am »
EA matches classes on name and filename.

In order to get EA to update the existing classes you will need to update the filename of each class. This can be done using the dockable properties window. (View | Properties)

A bulk update of class filenames when a directory path has changed can be made using local paths (See http://www.sparxsystems.com.au/EAUserGuide/index.html?localpaths.htm) as follows.

   1. Open the local paths dialog. (Settings | Local Paths) In the path field enter the path that EA currently thinks your files are at, or part of it.
   2. In the ID field enter something like "Source_Path".
   3. In the type field select your source code language.
   4. Click "Apply Path"
   5. This will substitute the path you entered for the ID in all classes containing that path.
   6. Edit the path field to your new path.
   7. EA will now find the files in their new paths.
   8. If you want to you can now click "Expand Path" and then delete that path.
   9. That will remove the relative paths that were created before, setting them back to absolute paths.
« Last Edit: November 26, 2008, 08:19:32 am by simonm »

henrique.brandao

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Import Source Directory problem
« Reply #2 on: November 26, 2008, 11:53:45 pm »
Thanks Simon, thats resolved the problem!