Book a Demo

Author Topic: Synchronizing with package not working  (Read 3385 times)

vkusuman

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Synchronizing with package not working
« on: June 22, 2009, 08:56:16 pm »
Hi,
I am trying to synchronize my Java source code with the EA Model, but I find a lot of problems.
1) It doesnt delete the files that are deleted in the code base.
2) doenst pick up the new files in the code base.

But it finds the changes to the existing classes and updates the model.

I couldnt find any options to set while doing this sync.
Please enlighten me.

Thanks,
VK

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Synchronizing with package not working
« Reply #1 on: June 23, 2009, 08:56:58 am »
The Import Source Directory command is able to both detect new files and deleted files.  The Synchronize Package command will not do that.

egi

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Synchronizing with package not working
« Reply #2 on: June 24, 2009, 09:04:22 am »
Hello.
I try the import Source Directory command but when I import classes already existing in the model, the classes are created for the second time.
How I can do to import only new classes ?

Regards
« Last Edit: June 24, 2009, 09:04:54 am by egi »

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Synchronizing with package not working
« Reply #3 on: June 24, 2009, 10:14:25 pm »
Check out the various Tools | Options pages, and play around with the settings on the import dialog. You will find the correct settings.

I think there's an overview of the settings in either the white papers or tutorials on the Sparx site. Check out the Resources page; it is a useful place to look for ideas for anything relating to EA.

[edit]But see Simon's note below, covering a point I failed to mention. That should be the first thing you should check.[/edit]
« Last Edit: June 25, 2009, 08:58:32 am by Midnight »
No, you can't have it!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Synchronizing with package not working
« Reply #4 on: June 25, 2009, 08:15:57 am »
The most common cause of duplication during import is that the path has changed.  Look at Local Paths to see how to deal with this.