Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: vkusuman on June 22, 2009, 08:56:16 pm

Title: Synchronizing with package not working
Post by: vkusuman 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
Title: Re: Synchronizing with package not working
Post by: Eve 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.
Title: Re: Synchronizing with package not working
Post by: egi 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
Title: Re: Synchronizing with package not working
Post by: «Midnight» 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]
Title: Re: Synchronizing with package not working
Post by: Eve 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 (http://www.sparxsystems.com/uml_tool_guide/code_engineering/localpaths.html) to see how to deal with this.