Example #1
0
        public IBuilder Create(IEnumerable <Project> projects)
        {
            var builders = new List <IBuilder>();
            var prjs     = projects.ToList();

            foreach (var project in prjs)
            {
                foreach (var sourceSet in project.SourceSets)
                {
                    if (buildScriptMappings.HasBuildScriptFor(sourceSet))
                    {
                        var buildScript = buildScriptMappings.GetBuildScriptFor(sourceSet);
                        builders.Add(builderFactory.CreatePythnoScriptedBuilder(project, buildScript));
                    }
                }
            }

            return(coreBuilderFactory.Merge(builders.ToArray(), new ProjectBuilderTag(String.Format("Python scripted builders of {0}", String.Join(", ", prjs.Select(p => p.Name))), prjs)));
        }
Example #2
0
 public PythonScriptedBuilder CreatePythnoScriptedBuilder(Project project, IBuildScript buildScript)
 {
     return(store.Add(baseImpl.CreatePythnoScriptedBuilder(project, buildScript)));
 }