[Mono-dev] xBuild - metadata in conditions

Marek Sieradzki marek.sieradzki at gmail.com
Tue Jun 19 08:05:44 EDT 2007


On 6/19/07, Michael CATANZARITI <catanzariti at yahoo.com> wrote:
> Hi,
>
> I would like to implement metadata in conditions in xBuild.
> For instance :
>
> <?xml version="1.0" encoding="utf-8"?>
>
>     <PropertyGroup>
>         <copygroup>A</copygroup>
>     </PropertyGroup>
>
>     <ItemGroup>
>         <myfiles Include="C:\test1.txt">
>             <group>A</group>
>         </myfiles>
>         <myfiles Include="C:\test3.txt">
>             <group>B</group>
>         </myfiles>
>         <myfiles Include="C:\test3.txt">
>             <group>A</group>
>         </myfiles>
>     </ItemGroup>
>
>     <Target Name="copyfiles" >
>         <Copy
> Condition="'%(group)'=='$(copygroup)'" SourceFiles="@(myfiles)"
> DestinationFolder="C:\Temp" SkipUnchangedFiles="true" />
>     </Target>
> </Project>
>
>
> Has someone already begun working on this feature ? Or at least has a design idea ?
>
> Thank you,
>
> Michaël
I don't think that anyone started work on this. There is specification
on msbuild wiki (channel9 -> msbuild) "ComplexConditionSpecification".
It will require quite a lot of work (it may be needed to
rewrite/refactor most of the code that parses expressions in xml
attributes)



More information about the Mono-devel-list mailing list