From: Ankit Jain Date: Fri, 27 May 2011 19:49:16 +0000 (+0530) Subject: [xbuild] Add property $(SkipCopyUnchangedFiles) X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=mono.git;a=commitdiff_plain;h=5979d6f01982aba922f86e1273b0173eab7b285e [xbuild] Add property $(SkipCopyUnchangedFiles) Microsoft.Common.targets: Use new property $(SkipCopyUnchangedFiles) to control SkipUnchangedFiles property of the various Copy tasks. Also, allow skipping when copying CopyToOutputDirectory files in PreserveNewest case. Patch from Tom Philpot --- diff --git a/mcs/tools/xbuild/xbuild/2.0/Microsoft.Common.targets b/mcs/tools/xbuild/xbuild/2.0/Microsoft.Common.targets index af108a0c4c8..ca18ee09331 100644 --- a/mcs/tools/xbuild/xbuild/2.0/Microsoft.Common.targets +++ b/mcs/tools/xbuild/xbuild/2.0/Microsoft.Common.targets @@ -32,6 +32,10 @@ $(Platform) + + true + + obj\ $(BaseIntermediateOutputPath)\ @@ -250,7 +254,7 @@ + SkipUnchangedFiles="$(SkipCopyUnchangedFiles)"> @@ -376,14 +380,14 @@ + SkipUnchangedFiles="$(SkipCopyUnchangedFiles)"> + SkipUnchangedFiles="$(SkipCopyUnchangedFiles)"> @@ -482,11 +486,11 @@ SourceFiles="$(IntermediateOutputPath)$(AssemblyName)$(TargetExt).mdb" Condition="'$(OutDir)' != '' and Exists('$(IntermediateOutputPath)$(AssemblyName)$(TargetExt).mdb')" DestinationFolder="$(OutDir)" - SkipUnchangedFiles="true" > + SkipUnchangedFiles="$(SkipCopyUnchangedFiles)" > - + @@ -494,7 +498,7 @@ SourceFiles = "@(IntermediateSatelliteAssemblies)" DestinationFiles = "@(IntermediateSatelliteAssemblies->'$(OutDir)\%(Culture)\$(AssemblyName).resources.dll')" Condition = "'@(IntermediateSatelliteAssemblies)' != ''" - SkipUnchangedFiles="true"> + SkipUnchangedFiles="$(SkipCopyUnchangedFiles)"> @@ -510,7 +514,8 @@ Outputs="@(ItemsToCopyToOutputDirectoryPreserveNewest->'$(OutDir)%(TargetPath)')"> + DestinationFiles="@(ItemsToCopyToOutputDirectoryPreserveNewest->'$(OutDir)%(TargetPath)')" + SkipUnchangedFiles="$(SkipCopyUnchangedFiles)"> diff --git a/mcs/tools/xbuild/xbuild/3.5/Microsoft.Common.targets b/mcs/tools/xbuild/xbuild/3.5/Microsoft.Common.targets index 2efac100f43..fd16d14a145 100644 --- a/mcs/tools/xbuild/xbuild/3.5/Microsoft.Common.targets +++ b/mcs/tools/xbuild/xbuild/3.5/Microsoft.Common.targets @@ -32,6 +32,10 @@ $(Platform) + + true + + obj\ $(BaseIntermediateOutputPath)\ @@ -259,7 +263,7 @@ + SkipUnchangedFiles="$(SkipCopyUnchangedFiles)"> @@ -386,14 +390,14 @@ + SkipUnchangedFiles="$(SkipCopyUnchangedFiles)"> + SkipUnchangedFiles="$(SkipCopyUnchangedFiles)"> @@ -492,11 +496,11 @@ SourceFiles="$(IntermediateOutputPath)$(AssemblyName)$(TargetExt).mdb" Condition="'$(OutDir)' != '' and Exists('$(IntermediateOutputPath)$(AssemblyName)$(TargetExt).mdb')" DestinationFolder="$(OutDir)" - SkipUnchangedFiles="true" > + SkipUnchangedFiles="$(SkipCopyUnchangedFiles)" > - + @@ -504,7 +508,7 @@ SourceFiles = "@(IntermediateSatelliteAssemblies)" DestinationFiles = "@(IntermediateSatelliteAssemblies->'$(OutDir)\%(Culture)\$(AssemblyName).resources.dll')" Condition = "'@(IntermediateSatelliteAssemblies)' != ''" - SkipUnchangedFiles="true"> + SkipUnchangedFiles="$(SkipCopyUnchangedFiles)"> @@ -520,7 +524,8 @@ Outputs="@(ItemsToCopyToOutputDirectoryPreserveNewest->'$(OutDir)%(TargetPath)')"> + DestinationFiles="@(ItemsToCopyToOutputDirectoryPreserveNewest->'$(OutDir)%(TargetPath)')" + SkipUnchangedFiles="$(SkipCopyUnchangedFiles)"> diff --git a/mcs/tools/xbuild/xbuild/4.0/Microsoft.Common.targets b/mcs/tools/xbuild/xbuild/4.0/Microsoft.Common.targets index c289a2716e4..ba525cff8c6 100644 --- a/mcs/tools/xbuild/xbuild/4.0/Microsoft.Common.targets +++ b/mcs/tools/xbuild/xbuild/4.0/Microsoft.Common.targets @@ -47,6 +47,10 @@ System.Core;$(AdditionalExplicitAssemblyReferences) + + true + + obj\ $(BaseIntermediateOutputPath)\ @@ -306,7 +310,7 @@ + SkipUnchangedFiles="$(SkipCopyUnchangedFiles)"> @@ -433,14 +437,14 @@ + SkipUnchangedFiles="$(SkipCopyUnchangedFiles)"> + SkipUnchangedFiles="$(SkipCopyUnchangedFiles)"> @@ -539,11 +543,11 @@ SourceFiles="$(IntermediateOutputPath)$(AssemblyName)$(TargetExt).mdb" Condition="'$(OutDir)' != '' and Exists('$(IntermediateOutputPath)$(AssemblyName)$(TargetExt).mdb')" DestinationFolder="$(OutDir)" - SkipUnchangedFiles="true" > + SkipUnchangedFiles="$(SkipCopyUnchangedFiles)" > - + @@ -551,7 +555,7 @@ SourceFiles = "@(IntermediateSatelliteAssemblies)" DestinationFiles = "@(IntermediateSatelliteAssemblies->'$(OutDir)\%(Culture)\$(AssemblyName).resources.dll')" Condition = "'@(IntermediateSatelliteAssemblies)' != ''" - SkipUnchangedFiles="true"> + SkipUnchangedFiles="$(SkipCopyUnchangedFiles)"> @@ -567,7 +571,8 @@ Outputs="@(ItemsToCopyToOutputDirectoryPreserveNewest->'$(OutDir)%(TargetPath)')"> + DestinationFiles="@(ItemsToCopyToOutputDirectoryPreserveNewest->'$(OutDir)%(TargetPath)')" + SkipUnchangedFiles="$(SkipCopyUnchangedFiles)">