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

            NetReflector.Read(xml, newMks);
            return(newMks);
        }
예제 #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;
		}
예제 #3
0
파일: Mks.cs 프로젝트: vardars/ci-factory
 public Mks(IHistoryParser parser, ProcessExecutor executor)
     : base(parser, executor)
 {
     executable = "si.exe";
     port = 8722;
     autoGetSource = false;
 }
예제 #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;
 }
예제 #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;
 }
예제 #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);
        }
예제 #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}";
 }
예제 #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);
        }
예제 #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;
 }
예제 #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;
		}
예제 #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;
 }
예제 #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;
 }
예제 #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;
 }
예제 #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;
 }
예제 #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;
        }
예제 #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;
     }
 }
예제 #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;
 }
예제 #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;
        }
예제 #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;
		}
예제 #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;
        }
예제 #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-";
 }
예제 #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-";
		}
예제 #26
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;
            }
        }
예제 #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;
        }
예제 #28
0
 public BitKeeper(IHistoryParser parser, ProcessExecutor executor)
     : base(parser, executor)
 {
 }
예제 #29
0
		private static Mks CreateMks(string xml, IHistoryParser historyParser, ProcessExecutor executor)
		{
			Mks newMks = new Mks(historyParser, executor);
			NetReflector.Read(xml, newMks);
			return newMks;
		}
예제 #30
0
파일: Pvcs.cs 프로젝트: vardars/ci-factory
 public Pvcs(IHistoryParser parser, ProcessExecutor executor)
     : base(parser, executor)
 {
 }
예제 #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;
		}
예제 #32
0
 public ProcessSourceControl(IHistoryParser historyParser)
     : this(historyParser, new ProcessExecutor())
 {
 }
 public RobocopySourceControl(IHistoryParser parser, ProcessExecutor executor)
     : base(parser, executor)
 {
 }
예제 #34
0
 public Mks(IHistoryParser parser, ProcessExecutor executor) : base(parser, executor)
 {
     executable    = "si.exe";
     port          = 8722;
     autoGetSource = false;
 }
예제 #35
0
 public Svn(ProcessExecutor executor, IHistoryParser parser) : base(parser, executor)
 {
 }
예제 #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;
 }
예제 #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();
        }
예제 #38
0
 public ProcessSourceControl(IHistoryParser historyParser) : this(historyParser, new ProcessExecutor())
 {
 }
예제 #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;
 }
예제 #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;
 }
예제 #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)
 {
 }
예제 #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;
		}
예제 #43
0
 public Pvcs(IHistoryParser parser, ProcessExecutor executor) : base(parser, executor)
 {
 }
예제 #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)
 {
 }
예제 #45
0
 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)
 {
 }
예제 #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}";
		}
예제 #48
0
 public Vsts(ProcessExecutor executor, IHistoryParser parser, IRegistry registry)
     : base(parser, executor)
 {
     this.registry = registry;
     this.executor = executor;
     this.parser = parser as VstsHistoryParser;
 }
예제 #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;
		}
예제 #50
0
 public Vault3(VaultVersionChecker versionCheckerShim, IHistoryParser historyParser, ProcessExecutor executor) : base(historyParser, executor)
 {
     this._shim   = versionCheckerShim;
     this.Timeout = _shim.Timeout;
 }
예제 #51
0
 public Git(IHistoryParser historyParser, ProcessExecutor executor, IFileSystem fileSystem, IFileDirectoryDeleter fileDirectoryDeleter)
     : base(historyParser, executor)
 {
     _fileSystem = fileSystem;
     _fileDirectoryDeleter = fileDirectoryDeleter;
 }
예제 #52
0
 public Cvs(IHistoryParser parser, ProcessExecutor executor, IFileSystem fileSystem, IExecutionEnvironment executionEnvironment)
     : base(parser, executor)
 {
     this.fileSystem = fileSystem;
     this.executionEnvironment = executionEnvironment;
 }
예제 #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)
		{}
예제 #55
0
 public BitKeeper(IHistoryParser parser, ProcessExecutor executor) : base(parser, executor)
 {
 }
예제 #56
0
 public Vss(IVssLocale locale, IHistoryParser historyParser, ProcessExecutor executor, IRegistry registry) : base(historyParser, executor)
 {
     this.registry = registry;
     this.locale   = locale;
 }
예제 #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;
		}
예제 #58
0
 public Alienbrain(IHistoryParser parser, ProcessExecutor executor, IRegistry registry)
     : base(parser, executor)
 {
     this.registry = registry;
 }
예제 #59
0
 public ProcessSourceControl(IHistoryParser historyParser, ProcessExecutor executor)
 {
     this.executor      = executor;
     this.historyParser = historyParser;
 }
예제 #60
0
 public Cvs(IHistoryParser parser, ProcessExecutor executor, CvsHistoryCommandParser historyCommandParser) : base(parser, executor)
 {
     this.historyCommandParser = historyCommandParser;
 }