10 Commits
Author SHA1 Message Date
Andres G. Aragoneses b6c3382596 Microsoft.Build.Engine: Remove deprecated NET_2_0 conditionals 2012-09-15 18:06:34 +01:00
Ankit Jain 64b342c4e8 In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:
* 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
2009-09-01 04:00:38 +00:00
Ankit Jain bd33dcb033 Lazily load UsingTask tasks.
In class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine:

	Lazily load UsingTask tasks.
	* UsingTask.cs (Evaluate): Register 'this' with task database,
	but don't load it yet. Register only if condition evaluates to true.
	Move the load logic to ..
	(Load): .. here. Register with the specified task database.
	* TaskDatabase.cs (RegisterUsingTask): Store the UsingTask instance
	in a table keyed by task name, but don't load it yet.
	(GetTypeFromClassName): Try to load UsingTask if task is not already
	loaded. Move loading logic to ..
	(GetTypeFromClassNameInternal): .. here.
	(CopyTasks): Copy the usingTasks table also.

In class/Microsoft.Build.Engine/Test/Microsoft.Build.BuildEngine:

	* UsingTaskTest.cs (TestLazyLoad{1,2,3}): New.
	(TestAssemblyNameOrAssemblyFileConditionFalse): New.
	(TestDuplicate1): New.
	* TargetTest (CheckLoggedMessageHead): Moved to TestMessageLogger,
	use that.

In class/Microsoft.Build.Engine/Test/resources:

	* TestTasks.cs (Another.SameTask): New.
	(Other.SameTask): New.

In class/Microsoft.Build.Tasks/Test/Microsoft.Build.Tasks:

	* TestMessageLogger.cs (CheckLoggedMessageHead): Move here from
	* TaskBatchingTest.cs: .. here. Track api change.

svn path=/trunk/mcs/; revision=127830
2009-02-24 00:12:25 +00:00
Marek Sieradzki 4b6c9514dc 2007-01-23 Marek Sieradzki <[email protected]>
* 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
2007-01-23 21:38:27 +00:00
Marek Sieradzki 52f8ef62f9 006-12-16 Marek Sieradzki <[email protected]>
* 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
2006-12-15 23:35:11 +00:00
Marek Sieradzki 988e75c34a 2006-12-07 Marek Sieradzki <[email protected]>
* 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
2006-12-07 10:30:42 +00:00
Marek Sieradzki c46f217cc7 2006-06-14 Marek Sieradzki <[email protected]>
* UsingTask.cs: Changed properties to return null on empty attribute.
        * UsingTaskCollection.cs: Added object to SyncRoot.
        * BuildPropertyGroup.cs: Added NotImplementedException throwing.


svn path=/trunk/mcs/; revision=61715
2006-06-14 21:48:09 +00:00
Marek Sieradzki 81c0b956ef 2006-03-27 Crestez Leonard <[email protected]>
* ImportCollection.cs, UsingTaskCollection.cs: Cleaned up, switched
        to lists instead of hashtables.
        * Import.cs: Cleaned up, moved importing from Project.cs
        * BuildProperty.cs, BuildPropertyGroup.cs: Minor fixes.
        * Engine.cs: Cleaned up properties.
        * Project.cs: Moved importing to Import.cs, cleaned up properties,
        Separated evaluation and loading.


svn path=/trunk/mcs/; revision=58663
2006-03-28 17:37:16 +00:00
Marek Sieradzki c83df40ab3 2006-03-21 Crestez Leonard <[email protected]>
* 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
2006-03-21 17:06:28 +00:00
Marek Sieradzki 74041f540e 2006-03-11 Marek Sieradzki <[email protected]>
* 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
2006-03-11 17:41:42 +00:00