protected void InitCurrentProject() { // get the id from the QueryString string id = this.GetIdFromUri(); this.CurrentProject = PlovrConfiguration.GetCurrentPlovrProjectById(id); // override the mode from the querystring if its passed this.CurrentProject.Mode = this.GetModeFromQueryString() ?? CurrentProject.Mode; string rootPath = Context.Request.MapPath("~"); // reformat the base paths so we have full paths this.CurrentProject.Paths = PathHelpers.MakeAbsoluteFromUrlAndBasePath(CurrentProject.Paths,rootPath); this.CurrentProject.Inputs = PathHelpers.MakeAbsoluteFromUrlAndBasePath(CurrentProject.Inputs, rootPath); if (this.CurrentProject.Externs != null) { this.CurrentProject.Externs = CurrentProject.Externs.Select(x => PathHelpers.MakeAbsoluteFromUrlAndBasePath(x, rootPath)); } }
public ClosureCompilerRunner(IPlovrSettings settings, IPlovrProject project) : base(settings, project) { }
/// <summary> /// Our constructor, allows you to pass in a single base path that is comma delimited. /// </summary> /// <param name="projectElement">the project we want to compile</param> /// <param name="settings">the settings we use to compile</param> public DependencyBuilder(IPlovrProject projectElement, IPlovrSettings settings) { this.Project = projectElement; this.Settings = settings; // this.BasePaths = basePath.IndexOf(',') > 0 ? basePath.Split(',').ToList() : new List<string> { basePath }; this.Provide = new Dictionary<string, string>(); this.Require = new Dictionary<string, List<string>>(); // we need to read output asynchronously. so we use a helper class ProcessHelper = new AsyncProcessHelper(); // build out the dependency tree. this.BuildDepedencyTree(); }
public ClosureTemplateRunner(IPlovrSettings settings, IPlovrProject project) : base(settings, project) { }