Discussion Forum for StarTeam Users


Re: Create Project Using StarGate SDK?!


[ Follow Ups ] [ Post Followup ] [ Discussion Forum for StarTeam Users]

Posted by Steve on November 15, 2000 at 00:40:33:

In Reply to: Create Project Using StarGate SDK?! posted by Cinthia Lee on November 12, 2000 at 23:51:16:

: Hi,

: Is it possible to use StarGate to create a new StarTeam project?

: I checked the documents and it seems the "Project" class can only access "available" projects...

: What I want to do is to write a program that can automatically create a StarTeam project, create folders, set access rights, etc. I found it quite annoying to do all those manually whenever I need a new project... : )

: Thank you,

: Cinthia

You want to use the ProjectFactory class to create a new Project object. A quick example in VB:
Dim pfact As New StProjectFactory
Dim p As StProject
Set pfact = CreateObject("StarTeam.stProjectFactory")
Set p = pfact.Create(mSTServer, "NewProject", "c:\NewProject")
p.Update

It's really as simple as that. For more control, you can use the CreateEx() method. But to simply answer your question, yes you can create new projects with StarGate.

Regards,
Steve


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:


[ Follow Ups ] [ Post Followup ] [ Discussion Forum for StarTeam Users]