[Mono-bugs] [Bug 710238] New: Conditions within RemoveDir task do not resolve properties

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Aug 4 04:13:12 EDT 2011


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

https://bugzilla.novell.com/show_bug.cgi?id=710238#c0


           Summary: Conditions within RemoveDir task do not resolve
                    properties
    Classification: Mono
           Product: Mono: Tools
           Version: 2.10.x
          Platform: All
        OS/Version: openSUSE 11.4
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: xbuild
        AssignedTo: jankit at novell.com
        ReportedBy: imaudi at comcast.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_0)
AppleWebKit/534.30 (KHTML, like Gecko) Chrome/12.0.742.122 Safari/534.30

<RemoveDir Condition="???" /> does not resolve properties within the Condition
attribute.

Reproducible: Always

Steps to Reproduce:
1. Create a project with the following ItemGroup:

  <PropertyGroup>
    <BuildDir>Build</BuildDir>
  </PropertyGroup>

2. Create a task which tries to conditionally remove the Build directory:

<RemoveDir Directories="$(BuildDir)" Condition=" Exists( $(BuildDir) ) " />

3. Run task
Actual Results:  
Error:

: error : Error building target Clean: Unable to parse condition " Exists(
$(BuildDir) ) " : Expected a property at position 10 in condition " Exists(
$(BuildDir) ) ". Missing opening parantheses after the '$'. 

Expected Results:  
Should delete the Build directory, if it exists.

Note: This works as expected on MSBuild.

XBuild Engine Version 2.11.0.0

Mono, Version 2.11.0.0

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list