Пример #1
0
        public Cleartool(string clearcaseRoot, LabelFilter labelFilter)
        {
            _labelFilter = labelFilter;

            var startInfo = new ProcessStartInfo(_cleartool)
            {
                UseShellExecute = false, RedirectStandardInput = true, RedirectStandardOutput = true, RedirectStandardError = true
            };

            _process = new Process {
                StartInfo = startInfo
            };
            _process.Start();
            _outputThread = new Thread(ReadOutput)
            {
                IsBackground = true
            };
            _outputThread.Start();
            _errorThread = new Thread(ReadError)
            {
                IsBackground = true
            };
            _errorThread.Start();
            _cleartoolAvailable.Wait();
            _clearcaseRoot = clearcaseRoot;
            ExecuteCommand("cd \"" + _clearcaseRoot + "\"");
        }
Пример #2
0
        public CleartoolReader(string clearcaseRoot, string originDate, IEnumerable <string> labels)
        {
            var labelFilter = new LabelFilter(labels);

            _cleartools = new Cleartool[_nbCleartool];
            for (int i = 0; i < _nbCleartool; i++)
            {
                _cleartools[i] = new Cleartool(clearcaseRoot, labelFilter);
            }

            _originDate = string.IsNullOrEmpty(originDate) ? DateTime.UtcNow : DateTime.Parse(originDate).ToUniversalTime();
        }
Пример #3
0
 public ExportReader(string originDate, IEnumerable <string> labels)
 {
     Elements     = new List <Element>();
     _originDate  = string.IsNullOrEmpty(originDate) ? DateTime.UtcNow : DateTime.Parse(originDate).ToUniversalTime();
     _labelFilter = new LabelFilter(labels);
 }