Example #1
0
        /// <summary>
        /// All tasks will call on this method to connect to StarTeam and open the view for processing.
        /// </summary>
        /// <returns>the a view to be used for processing.</returns>
        /// <seealso cref="createSnapshotView"/>
        protected internal virtual InterOpStarTeam.StView openView()
        {
            InterOpStarTeam.StStarTeamFinderStatics starTeamFinder = new InterOpStarTeam.StStarTeamFinderStatics();
            InterOpStarTeam.StView view = starTeamFinder.openView(this.url);

            if (null == view)
            {
                throw new BuildException("Cannot find view" + this.url + " in repository()", Location);
            }

            InterOpStarTeam.StView snapshot = createSnapshotView(view);
            _server = snapshot.Server;
            return(snapshot);
        }
Example #2
0
        /// <summary>
        /// All tasks will call on this method to connect to StarTeam and open the view for processing.  
        /// </summary>
        /// <returns>the a view to be used for processing.</returns>
        /// <seealso cref="createSnapshotView"/>
        protected internal virtual InterOpStarTeam.StView openView() {
            InterOpStarTeam.StStarTeamFinderStatics starTeamFinder = new InterOpStarTeam.StStarTeamFinderStatics();
            InterOpStarTeam.StView view = starTeamFinder.openView(this.url);

            if (null == view) {
                throw new BuildException("Cannot find view" + this.url + " in repository()",Location);
            }

            InterOpStarTeam.StView snapshot = createSnapshotView(view);
            _server = snapshot.Server;
            return snapshot;
        }