/// <summary> /// Initializes a new instance of the <see cref="Argument" /> class /// with the given path. /// </summary> public Argument(PathSet value) { _path = value; }
public void Set(XmlNode attributeNode, Element parent, PropertyInfo property, string value) { try { PathSet propertyValue = new PathSet(parent.Project, value); property.SetValue(parent, propertyValue, BindingFlags.Public | BindingFlags.Instance, null, null, CultureInfo.InvariantCulture); } catch (Exception ex) { throw new BuildException(string.Format(CultureInfo.InvariantCulture, ResourceUtils.GetString("NA1022"), value, attributeNode.Name, parent.Name), parent.Location, ex); } }
public void AddPath(PathSet path) { _elements.Add(path); }
/// <summary> /// Invoked by <see cref="Element.AttributeConfigurator" /> for build /// attributes with an underlying <see cref="PathSet" /> type. /// </summary> /// <param name="project">The <see cref="Project" /> to be used to resolve relative paths.</param> /// <param name="path">The string representing a path.</param> /// <param name="logger">The logger.</param> public PathSet(Project project, string path, ITargetLogger logger) { base.Project = project; _translatedElements = PathSet.TranslatePath(project, path, logger); }
/// <summary> /// Invoked by <see cref="Element.AttributeConfigurator" /> for build /// attributes with an underlying <see cref="PathSet" /> type. /// </summary> /// <param name="project">The <see cref="Project" /> to be used to resolve relative paths.</param> /// <param name="path">The string representing a path.</param> public PathSet(Project project, string path) { base.Project = project; _translatedElements = PathSet.TranslatePath(project, path); }