* Expression.cs (ExpressionOptions): New.
Introduce a ExpressionOptions argument to all ConvertTo*
methods. Implement the rule: in evaluation phase, expand
all items completely, but dont expand item refs in properties.
At other times, expand the item refs in the properties.
See comments in Expression.cs, for a full explanation.
* BuildItem.cs: Track api changes.
* BuildItemGroup.cs: Likewise.
* BuildProperty.cs: Track api changes. Handle self-references.
* BuildTask.cs: Track api changes.
* IReference.cs: Add ExpressionOptions param.
* ItemReference.cs: Track api changes.
* PropertyReference.cs: Likewise.
* MetadataReference.cs: Likewise.
* ExpressionCollection.cs: Track api changes. Add support for
converting all primitive types and DateTime, instead of a fixed
few.
* Project.cs (GetMetadataBatched): Use the evaluated metadata.
* TaskBatchingImpl.cs: Handle the case when batching is required,
but no items are available.
* TaskEngine.cs: Throw on unsupported types. Correctly handle
properties in case of empty values.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* BuildItemTest.cs (TestSetMetadata5a): New.
* ProjectTest.cs: Add tests for different property types
with required attribute. Also, check the values - null or
empty array.
* TestTasks.cs: Add new tasks for above.
In class/Microsoft.Build.Engine/Test/resources:
* TestTasks.cs: Add new tasks for different property types
with required attribute. Also, emit whether the value was
null or a zero length array.
In class/Microsoft.Build.Engine/Test/various:
* Items.cs: Add tests for property/item evaluation.
svn path=/trunk/mcs/; revision=140911
Fix bug #512535.
* ExpressionCollection.cs (ConvertToITaskItemArray): Whitespace around a
itemref is allowed if the prev/next element is ";".
In class/Microsoft.Build.Engine/Test/various:
* Items.cs (TestItemsInTarget3a): Add another case for valid whitespace
around an item ref.
svn path=/trunk/mcs/; revision=136000
In class/Microsoft.Build.Engine:
* Microsoft.Build.Engine.dll.sources: Add IReference.cs
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* IReference.cs: New. Interface for Item/Metadata/PropertyReference.
* ChangeType (ToBuildItemGroup): Add 'split' param.
Track api changes.
* Expression.cs (Parse): Add a new overload with a 'split' param.
* ExpressionCollection.cs (Add): Add new overload for IReference,
remove the ones for Item/Metadata/PropertyReference.
(ConvertToArray): Implement correctly.
(ConvertToString): Track api changes.
(ConvertToITaskItem): Implement with ConvertToITaskItemArray.
(ConvertToITaskItemArray): Implement support for concat'ing expressions.
(AddItemsToArray): New.
(ConvertToITaskItemArrayFromString): Refactor a bit.
(ThrowCantConcatError): New.
* ItemReference.cs: Update.
* MetadataReference.cs: Update.
* PropertyReference.cs (ConvertToITaskItemArray): Implement.
(GetValue): New.
* BuildPropertyGroup.cs: Track api changes.
* TaskEngine.cs (PublishOutput): Improve exception message.
* Project.cs (DoLoad): Improve exception message. Add a null check.
In class/Microsoft.Build.Engine/Test/various:
* Items.cs: Add tests for expression parsing, mainly for concat'ing
expressions. Remove "NotWorking" for some tests that are working now.
svn path=/trunk/mcs/; revision=122310
* ItemPropertyGroupingBase.cs, TaskEngineAssemblyResolver.cs: Removed
classes that were public in Beta 2 and aren't used.
* Expression.cs: Added replacement for parsing expressions char by
char. It uses regexes to find item/property/metadata references in
given text.
* ExpressionCollection.cs, BuildTask.cs, ConditionFactorExpression.cs,
Target.cs, TaskEngine.cs, BuildItemGroup.cs, UsingTask.cs, Import.cs,
BuildItem.cs, BatchingImpl.cs, BuildProperty.cs: Track API changes.
* ConditionRelationalExpression.cs: Formatting.
* OldExpression.cs: Commented everything.
* MetadataReference.cs, ItemReference.cs, PropertyReference.cs: Moved
parsing to Expression.
* BuildItem.cs: Check if project is from XML in set_Condition and
set_Exclude.
* BuildPropertyGroup.cs, Project.cs: Add ImportedProject to
Project.ctor.
* ConditionNotExpression.cs, ConditionAndExpression.cs: Check if we
can evaluate expression in CanEvaluateToBool ().
svn path=/trunk/mcs/; revision=69557
* ExpressionCollection.cs, BuildItemGroup.cs, BuildItem.cs,
ItemReference.cs, PropertyReference.cs: Changed name of *Reference
methods converting reference to string from ToString () to
ConvertToString () to avoid mistakes like using ToString () provided
by default.
svn path=/trunk/mcs/; revision=60322
* Target.cs, TaskEngine.cs, BuildItemGroup.cs, MetadataReference.cs,
Import.cs, ItemReference.cs, BuildItem.cs, BatchingImpl.cs,
PropertyReference.cs, BuildProperty.cs: Changed Expression to
OldExpression and changed To* functions to one ConvertTo ().
* TaskEngine.cs: Fixed PublishOutput ().
* OldExpression.cs: Added. It will be temporarily used before
LiteralExpression will be written using Tokenizer.
* Tokenizer.cs, Token.cs, ExpressionCollection.cs,
ExpressionParseException.cs, LiteralExpression.cs: Added.
svn path=/trunk/mcs/; revision=60212