Exemplo n.º 1
0
        public BuildOptions(BuildTarget target)
        {
            this.projectTarget         = target;
            this.TargetForDependencies = target;

            this.BuildDependentProjects = true;
            this.ParallelProjectCount   = DefaultParallelProjectCount;
            this.BuildOutputVerbosity   = DefaultBuildOutputVerbosity;
            this.BuildDetection         = BuildDetection.RegularBuild;
        }
		public IBuildable WrapBuildable(IBuildable buildable, BuildDetection setting)
		{
			switch (setting) {
				case BuildDetection.DoNotBuild:
					return new DummyBuildable(buildable);
				case BuildDetection.BuildModifiedAndDependent:
				case BuildDetection.BuildOnlyModified:
					lock (unmodifiedProjects) {
						foreach (var pair in unmodifiedProjects) {
							LoggingService.Debug(pair.Key.Name + ": " + pair.Value);
						}
					}
					return new WrapperFactory(this, setting).GetWrapper(buildable);
				case BuildDetection.RegularBuild:
					return buildable;
				default:
					throw new NotSupportedException();
			}
		}
		public IBuildable WrapBuildable(IBuildable buildable, BuildDetection setting)
		{
			switch (setting) {
				case BuildDetection.DoNotBuild:
					return new DummyBuildable(buildable);
				case BuildDetection.BuildModifiedAndDependent:
				case BuildDetection.BuildOnlyModified:
					lock (unmodifiedProjects) {
						foreach (var pair in unmodifiedProjects) {
							LoggingService.Debug(pair.Key.Name + ": " + pair.Value);
						}
					}
					return new WrapperFactory(this, setting).GetWrapper(buildable);
				case BuildDetection.RegularBuild:
					return buildable;
				default:
					throw new NotSupportedException();
			}
		}
			public WrapperFactory(BuildModifiedProjectsOnlyService service, BuildDetection setting)
			{
				this.Service = service;
				this.Setting = setting;
			}
Exemplo n.º 5
0
		public BuildOptions(BuildTarget target)
		{
			this.projectTarget = target;
			this.TargetForDependencies = target;
			
			this.BuildDependentProjects = true;
			this.ParallelProjectCount = DefaultParallelProjectCount;
			this.BuildOutputVerbosity = DefaultBuildOutputVerbosity;
			this.BuildDetection = BuildDetection.RegularBuild;
		}