예제 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Argument" /> class
 /// with the given path.
 /// </summary>
 public Argument(PathSet value)
 {
     _path = value;
 }
예제 #2
0
 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);
     }
 }
예제 #3
0
 public void AddPath(PathSet path)
 {
     _elements.Add(path);
 }
예제 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Argument" /> class
 /// with the given path.
 /// </summary>
 public Argument(PathSet value)
 {
     _path = value;
 }
예제 #5
0
 /// <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);
 }
예제 #6
0
 public void AddPath(PathSet path)
 {
     _elements.Add(path);
 }
예제 #7
0
파일: PathSet.cs 프로젝트: skolima/NAnt-new
 /// <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);
 }