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: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to