Example #1
0
 private void TryChangingExpandedValue(IBuildProperty property)
 {
     try
     {
         property.ExpandedValue = _project.ExpandProperties(property.ExpandedValue,
                                                            new Location(_fileInfo.FullName));
     }
     catch (BuildException)
     {
         /* ignore */
     }
 }
 private static void TryExpandingProperty(Project project, IBuildProperty property)
 {
     try
     {
         property.DefaultExpandedValue =
             property.ExpandedValue =
             project.ExpandProperties(property.Value, new Location("Buildfile"));
     }
     catch (BuildException)
     {
         // TODO: Do something with the error message
     }
 }
Example #3
0
 private static void TryExpandingProperty(Project project, IBuildProperty property)
 {
     try
     {
         property.DefaultExpandedValue =
             property.ExpandedValue    =
                 project.ExpandProperties(property.Value, new Location("Buildfile"));
     }
     catch (BuildException)
     {
         // TODO: Do something with the error message
     }
 }
Example #4
0
        private void LoadNonProjectProperty(IBuildProperty property)
        {
            if (!property.ReadOnly &&
                property.ExpandedValue != property.DefaultExpandedValue)
            {
                if (IsNotExpanded(property.ExpandedValue))
                {
                    TryChangingExpandedValue(property);
                }

                _project.Properties.AddReadOnly(property.Name, property.ExpandedValue);
            }
        }
 internal BuildPropertyDescriptor(IBuildProperty item, Attribute[] attrs)
     : base(item.Name, attrs)
 {
     _item = item;
 }
Example #6
0
 internal BuildPropertyDescriptor(IBuildProperty item, Attribute[] attrs) :
     base(item.Name, attrs)
 {
     _item = item;
 }
 private void TryChangingExpandedValue(IBuildProperty property)
 {
     try
     {
         property.ExpandedValue = _project.ExpandProperties(property.ExpandedValue,
                                                            new Location(_fileInfo.FullName));
     }
     catch (BuildException)
     {
         /* ignore */
     }
 }
        private void LoadNonProjectProperty(IBuildProperty property)
        {
            if (!property.ReadOnly &&
                property.ExpandedValue != property.DefaultExpandedValue)
            {
                if (IsNotExpanded(property.ExpandedValue))
                {
                    TryChangingExpandedValue(property);
                }

                _project.Properties.AddReadOnly(property.Name, property.ExpandedValue);
            }
        }