* Expression.cs (ParseOptions): New enum. Replace the bool params
of exression.Parse with this. Add option to control expansion of
metadata references.
(CopyToExpressionCollection): Track api changes.
Update all expr.Parse calls to use the new enum.
* BuildItem.cs, BuildProperty.cs, BuildTask.cs, Import.cs,
Target.cs, TargetBatchingImpl.cs, UsingTask.cs: Track api changes.
* BatchingImplBase.cs: Track api changes. Allow metadata refs
in task attributes.
* ConditionFactorExpression.cs: Allow metadata refs in conditions.
* ItemReference.cs: Allow metadata in transforms.
* TaskEngine.cs: Allow metadata refs.
* MetadataReference.cs (.ctor): Add a 'original string' param.
In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:
* TaskBatchingTest.cs: Add new tests for metadata refs found
in places other than task attributes.
svn path=/trunk/mcs/; revision=140998
* 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
* BatchingImplBase.cs: Make the item name lookups and metadata be case
insensitive.
* TaskDatabase.cs: Likewise.
* TaskEngine.cs: Make property name looks, case insensitive.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* ProjectTest.cs (TestCaseSensitivityOfProjectElements): New.
svn path=/trunk/mcs/; revision=140153
* ConsoleLogger.cs: Emit "-- FAILED" also when project/target building
fails. Also, emit result of project at Normal verbosity level.
svn path=/trunk/mcs/; revision=138897
* TaskEngine.cs (GetObjectFromString): Empty value is allowed only for
arrays.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* ProjectTest.cs (TestRequiredTask_*): New.
(TestBatchedMetadataRef5): New.
In class/Microsoft.Build.Engine/Test/resources:
* TestTasks.cs (RequiredTestTask): Rename to ..
(RequiredTestTask_TaskItems): .. this.
(RequiredTestTask_*): New types.
svn path=/trunk/mcs/; revision=125076
* BuildItem.cs (child_items): Change type from BuildItemGroup to
List<BuildItem>.
(HasParent): Rename to ..
(HasParentItem): .. this.
(ParentItemGroup): Add setter.
* BuildItemGroup.cs (.ctor): Add overload with @project param.
(AddNewItem):
(AddItem): Correctly set the ParentItemGroup for new build items.
(ParentProject): Add setter.
* Project.cs: Set the project for new BuildItemGroup instances.
* TaskEngine.cs (PublishItemGroup): Likewise.
In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:
* BuildItemTest.cs (TestBuildItemTransform): New.
In class/Microsoft.Build.Engine/Test/resources:
* TestTasks.cs (BatchingTestTask.TaskItemsOutput): New.
svn path=/trunk/mcs/; revision=124840
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
* TaskEngine.cs, ChangeType.cs: Moved Collect* to ChangeType and
simplified. It still needs tests and refactoring.
svn path=/trunk/mcs/; revision=73752
* BuildTask.cs, ConditionFactorExpression.cs, Target.cs,
TaskEngine.cs, UsingTask.cs, ItemReference.cs, BuildItem.cs,
BatchingImpl.cs, BuildProperty.cs: Track API changes.
* Expression.cs (Parse): Added allowItems parameter and made regexes
static.
* Import.cs (Evaluate): Moved hack from tools/xbuild/Makefile here. It
will try to import a.ext when given a.EXT.
svn path=/trunk/mcs/; revision=71563
* BuildWhen.cs, BuildPropertyGroupCollection.cs,
BuildItemGroupCollection.cs, Project.cs, GroupingCollection.cs:
GroupingCollection doesn't need Project reference.
* BuildTask.cs, Target.cs, TaskEngine.cs, BatchingImpl.cs: Formatting
* BuildItemGroup.cs: Added new readOnly parameter to ctor.
(Project.EvaluatedItems is a read only item group.)
(ReplaceWith): Added.
* BuildPropertyGroup.cs (IsGlobal): Added. Setting a property in
global property group causes reevaluation of its project.
* Project.cs: ProcessXml () is internal and can be "safely" invoked by
other classes.
* OldExpression.cs: Removed.
* BuildProperty.cs (Evaluate): Simplified.
* ChangeType.cs (TemporaryTransform): Simplified.
* BuildItem.cs: There are now 3 types of build items: from XML, having
parent from XML, virtual. Added SplitParentItem ().
svn path=/trunk/mcs/; revision=70342
* 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
* TaskEngine.cs, ItemReference.cs: Use IDictionary <string,
BuildItemGroup> not IDictionary.
* BuildItemGroup.cs, BuildItem.cs: Evaluate even if condition was
evaluated to false because we want to add every item to
Project.EvaluatedItemsByNameIgnoringCondition.
* Project.cs (Build): Don't throw an exception just return false.
(GetEvaluatedProperty): Avoid NullReferenceException.
(SetProjectExtensions): Implemented.
svn path=/trunk/mcs/; revision=69320
* BuildTask.cs: Implemented AddOutputItem () and AddOutputProperty ().
* UsingTaskCollection.cs: Removed [MonoTODO] and used CopyTo in CopyTo
(UsingTask[] array, int index)
* TaskEngine.cs: Reformatted PublishOutput () and added copying of
items to Project.EvaluatedItems in PublishItemGroup ();
* BuildItemGroup.cs: Added [MonoTODO].
* UsingTask.cs: Used expression for AssemblyFile to get around
problems with '\' and '/'.
* BuildItem.cs (ctor): Added null checks.
(GetMetadata): Return unevaluatedMetadata not evaluatedMetadata.
(SetMetadata): Don't escape evaluatedMetadata and escape
unevaluatedMetadata only when treatPropertyValueAsLiteral.
* BuildPropertyGroup.cs (GetEnumerator, Evaluate, RemoveProperty): Use
FromXml () instead of null checks.
(SetProperty): Escape propertyValue when it is literal.
* BuildProperty.cs: Changed exception message.
* Project.cs: Added XmlNamespaceManager and XmlNamespace internal
properties.
(GetProjectExtensions): Implemented.
svn path=/trunk/mcs/; revision=69165
* Target.cs: Changed "" to String.Empty.
* TaskEngine.cs: Don't try to convert a parameter to specific type if
string was evaluated to String.Empty.
* InternalLoggerException.cs:
* InvalidProjectFileException.cs: Added LinkDemand before
GetObjectData ().
* ConsoleLogger.cs: Changed "" to String.Empty.
* TargetCollection.cs: Fixed GetEnumerator () (stupid bug introduced
with change to generics).
* Project.cs: Made Build () throw more meaningful exception.
svn path=/trunk/mcs/; revision=66403
* 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
* Target.cs, TaskEngine.cs, BuildItemGroup.cs, BuildItem.cs,
BuildPropertyGroup.cs, TargetCollection.cs, BuildProperty.cs,
Engine.cs, Project.cs, BuildTask.cs, UsingTask.cs: Separate xml
binding and evaluation, merge xml binding in constructors.
* DirectoryScanner.cs: Includes CAN be empty.
* BuildChoose.cs, ItemReference.cs, ChangeType.cs: Newline at EOF.
* ConsoleLogger.cs: Fix compilation warning.
svn path=/trunk/mcs/; revision=58226
* Project.cs: Cleaned up add.
* Expression.cs: Hacked to transform \ and / to path separators.
* BuildPropertyGroup.cs: Small cleanup.
* BuildTask.cs, TaskEngine.cs: Fix TaskEngine not getting a Project
reference.
svn path=/trunk/mcs/; revision=58135
* BatchingImpl.cs: Updated with BuildTask instead of TaskElement.
* BuildItem.cs: Updated for new API and fixed crashing on non-existent
files.
* BuildItemGroup.cs, BuildItemGroupCollection.cs, BuildProperty.cs,
BuildPropertyGroup.cs, BuildPropertyGroupCollection.cs, ConsoleLogger.cs,
Engine.cs, Project.cs, Target.cs, TargetCollection.cs: Updated for new
API.
* DirectoryScanner.cs: Fixed ordering and crashing on duplicated items.
* TaskElement.cs: Temporarily removed.
* Xml.cs: Changed to static.
svn path=/trunk/mcs/; revision=57832