Exemple #1
0
 /// <summary>
 /// Downloads the TFS server item to the specified path.  If the item is a directory, just create it.
 /// </summary>
 /// <param name="localPath">The local path to download the TFS server item to.</param>
 public void Download(string localPath)
 {
     if (!IsDirectory)
     {
         Utils.EnsurePathToFileExists(localPath);
         ClearCaseServer clearCaseServer = ClearCaseServer.GetInstance(m_viewName);
         string          getCmd          = string.Format("get -to \"{0}\" \"{1}\"", localPath, ClearCasePath.MakeRelative(m_versionExtendedPath));
         try
         {
             string cmdOutput = clearCaseServer.ExecuteClearToolCommand(getCmd);
         }
         catch (Exception)
         {
             throw;
         }
     }
     else
     {
         Directory.CreateDirectory(localPath);
     }
 }
Exemple #2
0
        private void Execute(string format, params object[] args)
        {
            string cmd = String.Format(format, args);

            m_clearCaseServer.ExecuteClearToolCommand(cmd);
        }