Book a Demo

Author Topic: create a new repository  (Read 4387 times)

george75

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
create a new repository
« on: October 12, 2010, 04:47:13 am »
Hello,
I'am writing a little tool in java and want to create  first of all a new *.eap file, in which I can place my models. what is to do?
I read something about CreateModel, but how does this work.

thanks for your help
« Last Edit: October 12, 2010, 04:48:22 am by 123123 »

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: create a new repository
« Reply #1 on: October 12, 2010, 08:37:59 am »
To create a new .eap file, copy an existing one. C:\Program Files\Sparx Systems\EA\EABase.eap is there for that very purpose.
The Sparx Team
[email protected]

george75

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: create a new repository
« Reply #2 on: October 13, 2010, 04:05:09 am »
ok thanks,
and how does this work with the function:
rep.CreateModel (CreateModelType.....,"C:\\usr" , 0);
I receive a null Pointer?

george75

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: create a new repository
« Reply #3 on: October 21, 2010, 05:26:24 am »
push

george75

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Re: create a new repository
« Reply #4 on: October 26, 2010, 05:29:46 am »
hey,
sorry for pushing that topic again on top (last time ;) )

I' writing  a tool in Java. The user should have the option to create a new repository. But I don't know how to use the function

repository.CreateModel(...)

Can somebody help?
thanks

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: create a new repository
« Reply #5 on: October 26, 2010, 10:26:23 am »
Quote
ok thanks,
and how does this work with the function:
rep.CreateModel (CreateModelType.....,"C:\\usr" , 0);
I receive a null Pointer?
Have you tried a filename as the second parameter? "C:\\usr" looks like a folder name.
The Sparx Team
[email protected]