Book a Demo

Author Topic: configure version control settings in .init fille  (Read 5506 times)

Cisore

  • EA User
  • **
  • Posts: 67
  • Karma: +0/-0
    • View Profile
configure version control settings in .init fille
« on: June 28, 2012, 06:34:28 pm »
Hello,

I ask me if it's possible to configure the versions control in one file (how are read when EA is opening.) ?

(I have a second question : It's possible to defined a relative path project for version control)

Thanks for your answer.

Cisore

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: configure version control settings in .init fi
« Reply #1 on: June 28, 2012, 08:00:30 pm »
Cisore,
the VC is set up per user and such is the VC path. It is stored somewhere in the user data (can't recall the path to it at the moment). However, it's not recommended to manipulate it unless you know what you're doing.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: configure version control settings in .init fi
« Reply #2 on: June 28, 2012, 10:49:21 pm »
Most settings are stored in the registry:
[HKEY_CURRENT_USER\Software\Sparx Systems\EA400\EA\OPTIONS]
look at the key's starting with VC*
VC_CVSExePath
VC_CVSExplorerPath
VC_SVNExePath
VC_SVNExplorerPath
VC_TFSExePath
VCConfigs

The path to the working directory is stored in the paths.txt in the user profile: %appdata%\Sparx Systems\EA\paths.txt

Shouldn't be too hard to write a little script/program that sets these to some kind of standard value for corporate environments.

Geert


Cisore

  • EA User
  • **
  • Posts: 67
  • Karma: +0/-0
    • View Profile
Re: configure version control settings in .init fi
« Reply #3 on: June 29, 2012, 07:25:53 pm »
Thanks !!! ;D

Cisore

  • EA User
  • **
  • Posts: 67
  • Karma: +0/-0
    • View Profile
Re: configure version control settings in .init fi
« Reply #4 on: June 29, 2012, 08:20:01 pm »
Again a little question ?!   ::)

Where is located the variable in the entry <LocalPath> ?
for example I have (in the registry VCConfigs)
Code: [Select]
<VCConfigs>
<Config>
<GUID>Perforce</GUID>
<LocalPath>%perforce%</LocalPath>
<UserName>User</UserName>
<AuxProjPath>P4SCC#fgrp4proxy:1777##P4_USER##P4_workspace</AuxProjPath>
<Type>0</Type>
<Provider>Perforce SCM</Provider>
<ProjName>Perforce Project</ProjName>
</Config>
</VCConfigs>
Where can I find %perforce% ?

(My goal is to have one project how are completely on version control and new user can get it without to do 42 different configurations. And with a relative path. to don't have problem if I change the name of the root directory. To resume I need a good version configuration  ;D)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: configure version control settings in .init fi
« Reply #5 on: June 29, 2012, 11:08:11 pm »
see my last post.

Geert

Cisore

  • EA User
  • **
  • Posts: 67
  • Karma: +0/-0
    • View Profile
Re: configure version control settings in .init fi
« Reply #6 on: June 30, 2012, 12:42:33 am »
I had see your last post. But I have again the question: where is the variable %Perforce% ?

For information, I only have two Register : VCConfigs and VC_NoPromptMissingCfgs. (It's normal because Perforce is a SCC version control)

Cisore

  • EA User
  • **
  • Posts: 67
  • Karma: +0/-0
    • View Profile
Re: configure version control settings in .init fi
« Reply #7 on: July 03, 2012, 05:20:34 pm »
UP !


(question : Where can I find the variable on <localPath> 's entry (in the registry VCConfigs) ?)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: configure version control settings in .init fi
« Reply #8 on: July 03, 2012, 05:34:47 pm »
Quote
Most settings are stored in the registry:
[HKEY_CURRENT_USER\Software\Sparx Systems\EA400\EA\OPTIONS]
look at the key's starting with VC*
VC_CVSExePath
VC_CVSExplorerPath
VC_SVNExePath
VC_SVNExplorerPath
VC_TFSExePath
VCConfigs

[highlight]The path to the working directory is stored in the paths.txt in the user profile: %appdata%\Sparx Systems\EA\paths.txt[/highlight]

Shouldn't be too hard to write a little script/program that sets these to some kind of standard value for corporate environments.

Geert


 ::)

Cisore

  • EA User
  • **
  • Posts: 67
  • Karma: +0/-0
    • View Profile
Re: configure version control settings in .init fi
« Reply #9 on: July 03, 2012, 05:46:53 pm »
I had read that, but it's not the path of the working directory that I'm looking for.

(In EA make you two version control setting, and you will see you will have two different <localPath> however the file paths.txt (how is in the application directory) is empty !)

Cisore

  • EA User
  • **
  • Posts: 67
  • Karma: +0/-0
    • View Profile
Re: configure version control settings in .init fi
« Reply #10 on: July 04, 2012, 08:28:54 pm »
No body know where can I find this variable ?

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: configure version control settings in .init fi
« Reply #11 on: July 05, 2012, 02:43:58 pm »
Quote
(In EA make you two version control setting, and you will see you will have two different <localPath> however the file paths.txt (how is in the application directory) is empty !)
You need to look in %APPDATA%, not Program Files.  %APPDATA% = Application Data folder stored under your local user profile.

the paths.txt under Program Files will be empty.
the paths.txt under %APPDATA% should contain your local paths.

Cisore

  • EA User
  • **
  • Posts: 67
  • Karma: +0/-0
    • View Profile
Re: configure version control settings in .init fi
« Reply #12 on: July 06, 2012, 05:59:41 pm »
Ok I was not looking the good file.

(I did not know this folder -> %APPDATA%)

Thanks you for taking time to answer at my question.

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.