https://bugzilla.novell.com/show_bug.cgi?id=358396


           Summary: Conditional expression not correctly evaluated
           Product: Mono: Tools
           Version: 1.2.6
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: xbuild
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
         QAContact: [email protected]
          Found By: ---


In the following simple project file the Condition in the Enum target Message
task is not evaluated correctly while the same project works as expected with
MSBuild.  MSBuild prints Sample.resx .resx whereas xbuild prints nothing. (To
even run this example a patch for GenerateResouces.cs is required).

This test case comes from xbuild/tests/GenerateResource.

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"; >
        <ItemGroup>
                <Files Include="Sample.resx" />
        </ItemGroup>
        <Target Name="Main" >
            <GenerateResource Sources="@(Files)"
OutputResources="@(Files->'%(Filename).resources')">
                <Output
                        TaskParameter="OutputResources"
                        ItemName="Resources"/>
            </GenerateResource>
        </Target>
        <Target Name="Enum" 
                DependsOnTargets="Main">
           <Message 
                Text="@(Files) @(Files->'%(Extension)')" 
                Condition=" '@(Files->'%(Extension)')' == '.resx' "/>
        </Target>
        <Target Name="Clean" >
           <Delete Files="@(Files->'%(Filename).resources')" />
        </Target>
</Project>


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to