Book a Demo

Author Topic: Version controlled packages: Replace xml file  (Read 3758 times)

Boron

  • EA User
  • **
  • Posts: 111
  • Karma: +6/-0
    • View Profile
Version controlled packages: Replace xml file
« on: November 21, 2011, 11:47:32 pm »
Hello,

we have enabled version control for our packages in our project models (EA 9 with ClearCase as version control system). This means that we have many version controlled xml files, each containing the design of one packages. Together they form the complete design of our software.
Up to now we have no big problems with this approach.
Just for one thing...

If we want to enable version control for a newly designed package and store it with the file name e.g. Package.xml what can we do  if we want to replace an already existing file with the same name?
I know that deleting the original file from version control system and create it new by setting the EA package under version control would be the straightforward method (EA exports the package content to xml and sets the file under version control).
But let us assume this is not an option.
What if I just want to replace the already existing file?
Is this possible with EA, and how?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Version controlled packages: Replace xml file
« Reply #1 on: November 22, 2011, 12:16:57 am »
I don't think you can replace the file from within EA, so you'll have to do 'some' kind of action outside of EA to be able to replace the file.
(checkout of the file could be enough too)

Geert

Boron

  • EA User
  • **
  • Posts: 111
  • Karma: +6/-0
    • View Profile
Re: Version controlled packages: Replace xml file
« Reply #2 on: November 22, 2011, 12:55:01 am »
I feared that answer :(.

A checkout of the file does not work as EA shows an error messages saying that I have to choose another filename. EA refuses to replaces a file, no matter if the file is checked in or out.

Thanks anyway. You are always a good help.

Kind regards
Boron