Example #1
0
        private static Mks CreateMks(string xml, IHistoryParser historyParser, ProcessExecutor executor)
        {
            Mks newMks = new Mks(historyParser, executor);

            NetReflector.Read(xml, newMks);
            return(newMks);
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Mks" /> class.	
        /// </summary>
        /// <param name="parser">The parser.</param>
        /// <param name="executor">The executor.</param>
        /// <remarks></remarks>
		public Mks(IHistoryParser parser, ProcessExecutor executor) : base(parser, executor)
		{
            this.Executable = DefaultExecutable;
            this.AutoGetSource = DefaultAutoGetSource;
            this.AutoDisconnect = DefaultAutoDisconnect;
            this.Port = DefaultPort;
		}
Example #3
0
 public Mks(IHistoryParser parser, ProcessExecutor executor)
     : base(parser, executor)
 {
     executable = "si.exe";
     port = 8722;
     autoGetSource = false;
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Mks" /> class.
 /// </summary>
 /// <param name="parser">The parser.</param>
 /// <param name="executor">The executor.</param>
 /// <remarks></remarks>
 public Mks(IHistoryParser parser, ProcessExecutor executor) : base(parser, executor)
 {
     this.Executable     = DefaultExecutable;
     this.AutoGetSource  = DefaultAutoGetSource;
     this.AutoDisconnect = DefaultAutoDisconnect;
     this.Port           = DefaultPort;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RobocopySourceControl" /> class.	
 /// </summary>
 /// <param name="parser">The parser.</param>
 /// <param name="executor">The executor.</param>
 /// <remarks></remarks>
 public RobocopySourceControl(IHistoryParser parser, ProcessExecutor executor)
     : base(parser, executor)
 {
     this.Executable = "C:\\Windows\\System32\\robocopy.exe";
     this.AutoGetSource = false;
     this.WorkingDirectory = string.Empty;
     this.AdditionalArguments = string.Empty;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RobocopySourceControl" /> class.
 /// </summary>
 /// <param name="parser">The parser.</param>
 /// <param name="executor">The executor.</param>
 /// <remarks></remarks>
 public RobocopySourceControl(IHistoryParser parser, ProcessExecutor executor)
     : base(parser, executor)
 {
     this.Executable          = "C:\\Windows\\System32\\robocopy.exe";
     this.AutoGetSource       = false;
     this.WorkingDirectory    = string.Empty;
     this.AdditionalArguments = string.Empty;
 }
Example #7
0
 /// <summary>
 /// Create an instance of the source control integration.
 /// </summary>
 public ExternalSourceControl(IHistoryParser parser, ProcessExecutor executor)
     : base(parser, executor)
 {
     this.ArgString            = string.Empty;
     this.AutoGetSource        = false;
     this.EnvironmentVariables = new EnvironmentVariable[0];
     this.LabelOnSuccess       = false;
 }
Example #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Vss" /> class.
 /// </summary>
 /// <param name="locale">The locale.</param>
 /// <param name="historyParser">The history parser.</param>
 /// <param name="executor">The executor.</param>
 /// <param name="registry">The registry.</param>
 /// <remarks></remarks>
 public Vss(IVssLocale locale, IHistoryParser historyParser, ProcessExecutor executor, IRegistry registry) : base(historyParser, executor)
 {
     this.registry        = registry;
     this.locale          = locale;
     this.Project         = DefaultProject;
     this.ApplyLabel      = false;
     this.AutoGetSource   = true;
     this.AlwaysGetLatest = false;
     this.CleanCopy       = true;
 }
        protected void SetUp()
        {
            mockHistoryParser = new DynamicMock(typeof(IHistoryParser));
            CreateProcessExecutorMock(BitKeeper.DefaultExecutable);
            ProcessExecutor executor = (ProcessExecutor)mockProcessExecutor.MockInstance;
            IHistoryParser  parser   = (IHistoryParser)mockHistoryParser.MockInstance;

            bitkeeper = new BitKeeper(parser, executor);
            from      = new DateTime(2001, 1, 21, 20, 0, 0);
            to        = from.AddDays(1);
        }
Example #10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Git" /> class.
 /// </summary>
 /// <param name="historyParser">The history parser.</param>
 /// <param name="executor">The executor.</param>
 /// <param name="fileSystem">The file system.</param>
 /// <param name="fileDirectoryDeleter">The file directory deleter.</param>
 /// <remarks></remarks>
 public Git(IHistoryParser historyParser, ProcessExecutor executor, IFileSystem fileSystem, IFileDirectoryDeleter fileDirectoryDeleter)
     : base(historyParser, executor)
 {
     _fileSystem           = fileSystem;
     _fileDirectoryDeleter = fileDirectoryDeleter;
     this.AutoGetSource    = true;
     this.Executable       = "git";
     this.Branch           = "master";
     this.TagCommitMessage = "CCNet Build {0}";
     this.TagNameFormat    = "CCNet-Build-{0}";
 }
Example #11
0
        protected void SetUp()
        {
            mockHistoryParser = new Mock <IHistoryParser>();
            CreateProcessExecutorMock(BitKeeper.DefaultExecutable);
            ProcessExecutor executor = (ProcessExecutor)mockProcessExecutor.Object;
            IHistoryParser  parser   = (IHistoryParser)mockHistoryParser.Object;

            bitkeeper = new BitKeeper(parser, executor);
            from      = new DateTime(2001, 1, 21, 20, 0, 0);
            to        = from.AddDays(1);
        }
Example #12
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PlasticSCM" /> class.	
 /// </summary>
 /// <param name="parser">The parser.</param>
 /// <param name="executor">The executor.</param>
 /// <remarks></remarks>
 public PlasticSCM(IHistoryParser parser, ProcessExecutor executor)
     : base(parser, executor)
 {
     this.AutoGetSource = true;
     this.Executable = DefaultPlasticExecutable;
     this.Branch = string.Empty;
     this.Repository = string.Empty;
     this.WorkingDirectory = string.Empty;
     this.LabelOnSuccess = false;
     this.LabelPrefix = "ccver-";
     this.Forced = false;
 }
Example #13
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PlasticSCM" /> class.	
        /// </summary>
        /// <param name="parser">The parser.</param>
        /// <param name="executor">The executor.</param>
        /// <remarks></remarks>
		public PlasticSCM(IHistoryParser parser, ProcessExecutor executor)
			: base(parser, executor)
		{
            this.AutoGetSource = true;
            this.Executable = DefaultPlasticExecutable;
            this.Branch = string.Empty;
            this.Repository = string.Empty;
            this.WorkingDirectory = string.Empty;
            this.LabelOnSuccess = false;
            this.LabelPrefix = "ccver-";
            this.Forced = false;
		}
Example #14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Pvcs" /> class.
 /// </summary>
 /// <param name="parser">The parser.</param>
 /// <param name="executor">The executor.</param>
 /// <remarks></remarks>
 public Pvcs(IHistoryParser parser, ProcessExecutor executor)
     : base(parser, executor)
 {
     this.Executable       = "pcli.exe";
     this.Username         = string.Empty;
     this.Password         = string.Empty;
     this.WorkingDirectory = string.Empty;
     this.Workspace        = "/@/RootWorkspace";
     this.Recursive        = true;
     this.LabelOnSuccess   = false;
     this.AutoGetSource    = true;
     this.ManuallyAdjustForDaylightSavings = false;
 }
Example #15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Alienbrain" /> class.
 /// </summary>
 /// <param name="parser">The parser.</param>
 /// <param name="executor">The executor.</param>
 /// <param name="registry">The registry.</param>
 /// <remarks></remarks>
 public Alienbrain(IHistoryParser parser, ProcessExecutor executor, IRegistry registry) : base(parser, executor)
 {
     this.registry         = registry;
     this.Server           = string.Empty;
     this.Database         = string.Empty;
     this.Username         = string.Empty;
     this.Password         = string.Empty;
     this.Branch           = string.Empty;
     this.Project          = string.Empty;
     this.AutoGetSource    = true;
     this.WorkingDirectory = string.Empty;
     this.LabelOnSuccess   = false;
 }
Example #16
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Git" /> class.
 /// </summary>
 /// <param name="historyParser">The history parser.</param>
 /// <param name="executor">The executor.</param>
 /// <param name="fileSystem">The file system.</param>
 /// <param name="fileDirectoryDeleter">The file directory deleter.</param>
 /// <remarks></remarks>
 public Git(IHistoryParser historyParser, ProcessExecutor executor, IFileSystem fileSystem, IFileDirectoryDeleter fileDirectoryDeleter)
     : base(historyParser, executor)
 {
     _fileSystem                          = fileSystem;
     _fileDirectoryDeleter                = fileDirectoryDeleter;
     this.AutoGetSource                   = true;
     this.CleanUntrackedFiles             = true;
     this.Executable                      = "git";
     this.Branch                          = "master";
     this.TagCommitMessage                = "CCNet Build {0}";
     this.TagNameFormat                   = "CCNet-Build-{0}";
     this.MaxAmountOfModificationsToFetch = 100;
 }
Example #17
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Pvcs" /> class.	
 /// </summary>
 /// <param name="parser">The parser.</param>
 /// <param name="executor">The executor.</param>
 /// <remarks></remarks>
 public Pvcs(IHistoryParser parser, ProcessExecutor executor)
     : base(parser, executor)
 {
     this.Executable = "pcli.exe";
     this.Username = string.Empty;
     this.Password = string.Empty;
     this.WorkingDirectory = string.Empty;
     this.Workspace = "/@/RootWorkspace";
     this.Recursive = true;
     this.LabelOnSuccess = false;
     this.AutoGetSource = true;
     this.ManuallyAdjustForDaylightSavings = false;
 }
Example #18
0
        /// <summary>
        /// Create an instance of the source control integration.
        /// </summary>
        public AccuRev(IHistoryParser parser, ProcessExecutor executor) : base(parser, executor)
        {
            if (LogIn & ((AccuRevPrincipal == null) || (AccuRevPassword == null)))
            {
                Log.Error("login=true requires principal= and password= to be specified.");
            }

            this.AutoGetSource    = false;
            this.Executable       = "accurev.exe";
            this.AccuRevHomeDir   = null;
            this.LabelOnSuccess   = false;
            this.LogIn            = false;
            this.AccuRevPassword  = null;
            this.AccuRevPrincipal = null;
            this.Workspace        = string.Empty;
        }
Example #19
0
 public VaultVersionChecker(IHistoryParser historyParser, ProcessExecutor executor, EForcedVaultVersion forceVersion)
 {
     _forcedVaultVersion = forceVersion;
     switch ( forceVersion )
     {
         case EForcedVaultVersion.Vault3:
             _vaultSourceControl = new Vault3(this, historyParser, executor);
             break;
         case EForcedVaultVersion.Vault317:
             _vaultSourceControl = new Vault317(this, historyParser, executor);
             break;
         default:
             Debug.Fail("You have to force a version of Vault from the unit tests.");
             break;
     }
 }
Example #20
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Svn" /> class.
 /// </summary>
 /// <param name="executor">The executor.</param>
 /// <param name="parser">The parser.</param>
 /// <param name="fileSystem">The file system.</param>
 /// <remarks></remarks>
 public Svn(ProcessExecutor executor, IHistoryParser parser, IFileSystem fileSystem)
     : base(parser, executor)
 {
     this.fileSystem              = fileSystem;
     this.AuthCaching             = AuthCachingMode.None;
     this.Executable              = DefaultExecutable;
     this.TagOnSuccess            = false;
     this.TagWorkingCopy          = false;
     this.DeleteObstructions      = false;
     this.AutoGetSource           = true;
     this.CheckExternals          = false;
     this.CheckExternalsRecursive = true;
     this.CleanCopy = false;
     this.Revert    = false;
     this.CleanUp   = false;
 }
Example #21
0
        public void SetUp()
        {
            sandboxRoot = TempFileUtil.GetTempPath("MksSandBox");

            mockHistoryParserWrapper = new DynamicMock(typeof(IHistoryParser));
            mockHistoryParser        = (IHistoryParser)mockHistoryParserWrapper.MockInstance;

            mksHistoryParserWrapper = new DynamicMock(typeof(MksHistoryParser));
            mksHistoryParser        = (MksHistoryParser)mksHistoryParserWrapper.MockInstance;

            mockExecutorWrapper = new DynamicMock(typeof(ProcessExecutor));
            mockProcessExecutor = (ProcessExecutor)mockExecutorWrapper.MockInstance;

            mockIntegrationResult = new DynamicMock(typeof(IIntegrationResult));
            integrationResult     = (IIntegrationResult)mockIntegrationResult.MockInstance;
        }
Example #22
0
		public void SetUp()
		{
			sandboxRoot = TempFileUtil.GetTempPath("MksSandBox");

			mockHistoryParserWrapper = new DynamicMock(typeof (IHistoryParser));
			mockHistoryParser = (IHistoryParser) mockHistoryParserWrapper.MockInstance;

			mksHistoryParserWrapper = new DynamicMock(typeof (MksHistoryParser));
			mksHistoryParser = (MksHistoryParser) mksHistoryParserWrapper.MockInstance;

			mockExecutorWrapper = new DynamicMock(typeof (ProcessExecutor));
			mockProcessExecutor = (ProcessExecutor) mockExecutorWrapper.MockInstance;

			mockIntegrationResult = new DynamicMock(typeof (IIntegrationResult));
			integrationResult = (IIntegrationResult) mockIntegrationResult.MockInstance;
		}
Example #23
0
        public void SetUp()
        {
            sandboxRoot = TempFileUtil.GetTempPath("MksSandBox");

            mockHistoryParserWrapper = new Mock <IHistoryParser>();
            mockHistoryParser        = (IHistoryParser)mockHistoryParserWrapper.Object;

            mksHistoryParserWrapper = new Mock <MksHistoryParser>();
            mksHistoryParser        = (MksHistoryParser)mksHistoryParserWrapper.Object;

            mockExecutorWrapper = new Mock <ProcessExecutor>();
            mockProcessExecutor = (ProcessExecutor)mockExecutorWrapper.Object;

            mockIntegrationResult = new Mock <IIntegrationResult>();
            integrationResult     = (IIntegrationResult)mockIntegrationResult.Object;
        }
Example #24
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Cvs" /> class.
 /// </summary>
 /// <param name="parser">The parser.</param>
 /// <param name="executor">The executor.</param>
 /// <param name="fileSystem">The file system.</param>
 /// <param name="executionEnvironment">The execution environment.</param>
 /// <remarks></remarks>
 public Cvs(IHistoryParser parser, ProcessExecutor executor, IFileSystem fileSystem, IExecutionEnvironment executionEnvironment)
     : base(parser, executor)
 {
     this.fileSystem           = fileSystem;
     this.executionEnvironment = executionEnvironment;
     this.Executable           = DefaultCvsExecutable;
     this.CvsRoot          = string.Empty;
     this.WorkingDirectory = string.Empty;
     this.LabelOnSuccess   = false;
     this.RestrictLogins   = string.Empty;
     this.UrlBuilder       = new NullUrlBuilder();
     this.AutoGetSource    = true;
     this.CleanCopy        = true;
     this.ForceCheckout    = false;
     this.Branch           = string.Empty;
     this.TagPrefix        = "ver-";
 }
Example #25
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Cvs" /> class.	
        /// </summary>
        /// <param name="parser">The parser.</param>
        /// <param name="executor">The executor.</param>
        /// <param name="fileSystem">The file system.</param>
        /// <param name="executionEnvironment">The execution environment.</param>
        /// <remarks></remarks>
        public Cvs(IHistoryParser parser, ProcessExecutor executor, IFileSystem fileSystem, IExecutionEnvironment executionEnvironment)
            : base(parser, executor)
		{
			this.fileSystem = fileSystem;
            this.executionEnvironment = executionEnvironment;
            this.Executable = DefaultCvsExecutable;
            this.CvsRoot = string.Empty;
            this.WorkingDirectory = string.Empty;
            this.LabelOnSuccess = false;
            this.RestrictLogins = string.Empty;
            this.UrlBuilder = new NullUrlBuilder();
            this.AutoGetSource = true;
            this.CleanCopy = true;
            this.ForceCheckout = false;
            this.Branch = string.Empty;
            this.TagPrefix = "ver-";
		}
        public VaultVersionChecker(IHistoryParser historyParser, ProcessExecutor executor, EForcedVaultVersion forceVersion)
        {
            _forcedVaultVersion = forceVersion;
            switch (forceVersion)
            {
            case EForcedVaultVersion.Vault3:
                _vaultSourceControl = new Vault3(this, historyParser, executor);
                break;

            case EForcedVaultVersion.Vault317:
                _vaultSourceControl = new Vault317(this, historyParser, executor);
                break;

            default:
                Debug.Fail("You have to force a version of Vault from the unit tests.");
                break;
            }
        }
Example #27
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Mercurial"/> class.
        /// </summary>
        /// <param name="historyParser">The history parser.</param>
        /// <param name="executor">The executor.</param>
        /// <param name="fileSystem">The file system.</param>
        /// <param name="fileDirectoryDeleter">The file directory deleter.</param>
        public Mercurial(IHistoryParser historyParser, ProcessExecutor executor, IFileSystem fileSystem, IFileDirectoryDeleter fileDirectoryDeleter)
            : base(historyParser, executor)
        {
            Executable    = DefaultExecutable;
            AutoGetSource = true;
            // Do not initialize the branch because the default branch does not exist before the first commit
            //Branch = DefaultBranch;
            CommitterName              = DefaultCommitterName;
            CommitModifications        = false;
            CommitUntracked            = false;
            ModificationsCommitMessage = DefaultModificationsCommitMessage;
            MultipleHeadsFail          = false;
            TagOnSuccess        = false;
            TagNameFormat       = DefaultTagNameFormat;
            TagCommitMessage    = DefaultTagCommitMessage;
            PurgeModifications  = false;
            PushModifications   = false;
            RevertModifications = false;

            _fileSystem           = fileSystem;
            _fileDirectoryDeleter = fileDirectoryDeleter;
        }
Example #28
0
 public BitKeeper(IHistoryParser parser, ProcessExecutor executor)
     : base(parser, executor)
 {
 }
Example #29
0
		private static Mks CreateMks(string xml, IHistoryParser historyParser, ProcessExecutor executor)
		{
			Mks newMks = new Mks(historyParser, executor);
			NetReflector.Read(xml, newMks);
			return newMks;
		}
Example #30
0
 public Pvcs(IHistoryParser parser, ProcessExecutor executor)
     : base(parser, executor)
 {
 }
Example #31
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Vault3" /> class.	
        /// </summary>
        /// <param name="versionCheckerShim">The version checker shim.</param>
        /// <param name="historyParser">The history parser.</param>
        /// <param name="executor">The executor.</param>
        /// <remarks></remarks>
		public Vault3(VaultVersionChecker versionCheckerShim, IHistoryParser historyParser, ProcessExecutor executor) : base(historyParser, executor)
		{
			this._shim = versionCheckerShim;
			this.Timeout = _shim.Timeout;
		}
 public ProcessSourceControl(IHistoryParser historyParser)
     : this(historyParser, new ProcessExecutor())
 {
 }
 public RobocopySourceControl(IHistoryParser parser, ProcessExecutor executor)
     : base(parser, executor)
 {
 }
Example #34
0
 public Mks(IHistoryParser parser, ProcessExecutor executor) : base(parser, executor)
 {
     executable    = "si.exe";
     port          = 8722;
     autoGetSource = false;
 }
Example #35
0
 public Svn(ProcessExecutor executor, IHistoryParser parser) : base(parser, executor)
 {
 }
Example #36
0
 public Svn(ProcessExecutor executor, IHistoryParser parser, IFileSystem fileSystem)
     : base(parser, executor)
 {
     this.fileSystem = fileSystem;
     this.AuthCaching = AuthCachingMode.None;
     this.Executable = DefaultExecutable;
     this.TagOnSuccess = false;
     this.DeleteObstructions = false;
     this.AutoGetSource = true;
     this.CheckExternals = false;
     this.CheckExternalsRecursive = true;
     this.CleanCopy = false;
     this.Revert = false;
     this.CleanUp = false;
 }
Example #37
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BitKeeper"/> class.
        /// </summary>
        /// <param name="parser">The parser.</param>
        /// <param name="executor">The executor.</param>
        public BitKeeper(IHistoryParser parser, ProcessExecutor executor) : base(parser, executor)
		{
            this.InitialiseDefaults();
        }
 public ProcessSourceControl(IHistoryParser historyParser) : this(historyParser, new ProcessExecutor())
 {
 }
Example #39
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Vsts" /> class.
 /// </summary>
 /// <param name="executor">The executor.</param>
 /// <param name="parser">The parser.</param>
 /// <param name="registry">The registry.</param>
 /// <remarks></remarks>
 public Vsts(ProcessExecutor executor, IHistoryParser parser, IRegistry registry)
     : base(parser, executor)
 {
     this.registry = registry;
     this.executor = executor;
 }
Example #40
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Git" /> class.	
 /// </summary>
 /// <param name="historyParser">The history parser.</param>
 /// <param name="executor">The executor.</param>
 /// <param name="fileSystem">The file system.</param>
 /// <param name="fileDirectoryDeleter">The file directory deleter.</param>
 /// <remarks></remarks>
 public Git(IHistoryParser historyParser, ProcessExecutor executor, IFileSystem fileSystem, IFileDirectoryDeleter fileDirectoryDeleter)
     : base(historyParser, executor)
 {
     _fileSystem = fileSystem;
     _fileDirectoryDeleter = fileDirectoryDeleter;
     this.AutoGetSource = true;
     this.CleanUntrackedFiles = true;
     this.Executable = "git";
     this.Branch = "master";
     this.TagCommitMessage = "CCNet Build {0}";
     this.TagNameFormat = "CCNet-Build-{0}";
     this.MaxAmountOfModificationsToFetch = 100;
 }
Example #41
0
 /// <summary>
 /// Called only by the unit tests, sets up as appropriate.
 /// </summary>
 /// <param name="versionCheckerShim"></param>
 /// <param name="historyParser"></param>
 /// <param name="executor"></param>
 public Vault317(VaultVersionChecker versionCheckerShim, IHistoryParser historyParser, ProcessExecutor executor) : base(versionCheckerShim, historyParser, executor)
 {
 }
Example #42
0
		/// <summary>
		/// Initializes a new instance of the <see cref="Mercurial"/> class.
		/// </summary>
		/// <param name="historyParser">The history parser.</param>
		/// <param name="executor">The executor.</param>
		/// <param name="fileSystem">The file system.</param>
		/// <param name="fileDirectoryDeleter">The file directory deleter.</param>
		public Mercurial(IHistoryParser historyParser, ProcessExecutor executor, IFileSystem fileSystem, IFileDirectoryDeleter fileDirectoryDeleter)
			: base(historyParser, executor)
		{
			Executable = DefaultExecutable;
			AutoGetSource = true;
			// Do not initialize the branch because the default branch does not exist before the first commit
			//Branch = DefaultBranch;
			CommitterName = DefaultCommitterName;
			CommitModifications = false;
			CommitUntracked = false;
			ModificationsCommitMessage = DefaultModificationsCommitMessage;
			MultipleHeadsFail = false;
			TagOnSuccess = false;
			TagNameFormat = DefaultTagNameFormat;
			TagCommitMessage = DefaultTagCommitMessage;
			PurgeModifications = false;
			PushModifications = false;
			RevertModifications = false;

			_fileSystem = fileSystem;
			_fileDirectoryDeleter = fileDirectoryDeleter;
		}
Example #43
0
 public Pvcs(IHistoryParser parser, ProcessExecutor executor) : base(parser, executor)
 {
 }
Example #44
0
 /// <summary>
 /// Called only by the unit tests, sets up as appropriate.
 /// </summary>
 /// <param name="versionCheckerShim"></param>
 /// <param name="historyParser"></param>
 /// <param name="executor"></param>
 public Vault317(VaultVersionChecker versionCheckerShim, IHistoryParser historyParser, ProcessExecutor executor)
     : base(versionCheckerShim, historyParser, executor)
 {
 }
 public ProcessSourceControl(IHistoryParser historyParser, ProcessExecutor executor)
 {
     this.executor = executor;
     this.historyParser = historyParser;
 }
 /// <summary>
 /// Create an instance of the source control integration.
 /// </summary>
 public ExternalSourceControl(IHistoryParser parser, ProcessExecutor executor)
     : base(parser, executor)
 {
 }
Example #47
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Git" /> class.	
        /// </summary>
        /// <param name="historyParser">The history parser.</param>
        /// <param name="executor">The executor.</param>
        /// <param name="fileSystem">The file system.</param>
        /// <param name="fileDirectoryDeleter">The file directory deleter.</param>
        /// <remarks></remarks>
		public Git(IHistoryParser historyParser, ProcessExecutor executor, IFileSystem fileSystem, IFileDirectoryDeleter fileDirectoryDeleter)
			: base(historyParser, executor)
		{
			_fileSystem = fileSystem;
			_fileDirectoryDeleter = fileDirectoryDeleter;
            this.AutoGetSource = true;
            this.Executable = "git";
            this.Branch = "master";
            this.TagCommitMessage = "CCNet Build {0}";
            this.TagNameFormat = "CCNet-Build-{0}";
		}
Example #48
0
 public Vsts(ProcessExecutor executor, IHistoryParser parser, IRegistry registry)
     : base(parser, executor)
 {
     this.registry = registry;
     this.executor = executor;
     this.parser = parser as VstsHistoryParser;
 }
Example #49
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Vss" /> class.	
        /// </summary>
        /// <param name="locale">The locale.</param>
        /// <param name="historyParser">The history parser.</param>
        /// <param name="executor">The executor.</param>
        /// <param name="registry">The registry.</param>
        /// <remarks></remarks>
		public Vss(IVssLocale locale, IHistoryParser historyParser, ProcessExecutor executor, IRegistry registry) : base(historyParser, executor)
		{
			this.registry = registry;
			this.locale = locale;
            this.Project = DefaultProject;
            this.ApplyLabel = false;
            this.AutoGetSource = true;
            this.AlwaysGetLatest = false;
            this.CleanCopy = true;
		}
Example #50
0
 public Vault3(VaultVersionChecker versionCheckerShim, IHistoryParser historyParser, ProcessExecutor executor) : base(historyParser, executor)
 {
     this._shim   = versionCheckerShim;
     this.Timeout = _shim.Timeout;
 }
Example #51
0
 public Git(IHistoryParser historyParser, ProcessExecutor executor, IFileSystem fileSystem, IFileDirectoryDeleter fileDirectoryDeleter)
     : base(historyParser, executor)
 {
     _fileSystem = fileSystem;
     _fileDirectoryDeleter = fileDirectoryDeleter;
 }
Example #52
0
 public Cvs(IHistoryParser parser, ProcessExecutor executor, IFileSystem fileSystem, IExecutionEnvironment executionEnvironment)
     : base(parser, executor)
 {
     this.fileSystem = fileSystem;
     this.executionEnvironment = executionEnvironment;
 }
Example #53
0
 public Vss(IVssLocale locale, IHistoryParser historyParser, ProcessExecutor executor, IRegistry registry)
     : base(historyParser, executor)
 {
     this.registry = registry;
     this.locale = locale;
 }
		public StubSourceControl(IHistoryParser historyParser, ProcessExecutor executor) : base(historyParser, executor)
		{}
Example #55
0
 public BitKeeper(IHistoryParser parser, ProcessExecutor executor) : base(parser, executor)
 {
 }
Example #56
0
 public Vss(IVssLocale locale, IHistoryParser historyParser, ProcessExecutor executor, IRegistry registry) : base(historyParser, executor)
 {
     this.registry = registry;
     this.locale   = locale;
 }
Example #57
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Alienbrain" /> class.	
        /// </summary>
        /// <param name="parser">The parser.</param>
        /// <param name="executor">The executor.</param>
        /// <param name="registry">The registry.</param>
        /// <remarks></remarks>
		public Alienbrain(IHistoryParser parser, ProcessExecutor executor, IRegistry registry) : base(parser, executor)
		{
			this.registry = registry;
            this.Server = string.Empty;
            this.Database = string.Empty;
            this.Username = string.Empty;
            this.Password = string.Empty;
            this.Branch = string.Empty;
            this.Project = string.Empty;
            this.AutoGetSource = true;
            this.WorkingDirectory = string.Empty;
            this.LabelOnSuccess = false;
		}
Example #58
0
 public Alienbrain(IHistoryParser parser, ProcessExecutor executor, IRegistry registry)
     : base(parser, executor)
 {
     this.registry = registry;
 }
 public ProcessSourceControl(IHistoryParser historyParser, ProcessExecutor executor)
 {
     this.executor      = executor;
     this.historyParser = historyParser;
 }
Example #60
0
 public Cvs(IHistoryParser parser, ProcessExecutor executor, CvsHistoryCommandParser historyCommandParser) : base(parser, executor)
 {
     this.historyCommandParser = historyCommandParser;
 }