[Mono-bugs] [Bug 576589] New: xbuild conditional statement 'Exists' does not seem to work

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Feb 3 11:51:09 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=576589

http://bugzilla.novell.com/show_bug.cgi?id=576589#c0


           Summary: xbuild conditional statement 'Exists' does not seem to
                    work
    Classification: Mono
           Product: Mono: Tools
           Version: 2.4.x
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: xbuild
        AssignedTo: jankit at novell.com
        ReportedBy: jaebird at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


We had to do a workaround for this issue as seen below. Essentially it seems
the Exists condition is not returning true. The RemoveDir works if the
condition is removed.

<!-- Workaround for xbuild -->
<Exec
   Condition=" ('$(OS)' != 'Windows_NT') "
   Command=" rm -r -f -v $(MSBuildProjectDirectory)/Deploy/Sources "
/>

<!-- msbuild -->
<RemoveDir Condition="Exists('$(MSBuildProjectDirectory)/Deploy/Sources/')"
Directories="$(MSBuildProjectDirectory)/Deploy/Sources/"/>

Obviously we would like to just use the msbuild section. We are using 2.4.3.

-- 
Configure bugmail: http://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