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

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


           Summary: WriteLinesToFile does not delete file
    Classification: Mono
           Product: Mono: Tools
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Keywords: easy_fix
          Severity: Normal
          Priority: P5 - None
         Component: xbuild
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: Development
           Blocker: No


Description of Problem:

In the MSBuild implementation, the WriteLinesToFile, when specifying no Lines
and setting Overwrite to true, deletes the file. This detail is used in the
Clean target from Microsoft.Common.Targets to delete the CleanFile if all
files specified in the CleanFile have been successfully deleted.

XBuild implementation does not delete the file in this case, and leaves
a blank CleanFile in the OutDir after Clean.

Steps to reproduce the problem:
1. Create a new target with the WriteLinesToFile with Lines empty or omitted,
and Overwrite set to true OR use a project file which eventually imports
Microsoft.Common.Targets

2. Execute the specified target in the build file (use the Clean target of a
project that had previously executed Build on a Microsoft.Common.Targets based
project)


Actual Results:

The file specified ($(BaseIntermediatePath)$(CleanFile) on
Microsoft.Common.Targets based project) is deleted.

Expected Results:

The file specified exists as empty.

How often does this happen? 

Every run.

Additional Information:

This functionality is required in order to fully clean projects based
on Microsoft.Common.Targets. Leaving the extra CleanFile can cause issues
with automated build and packaging systems.

-- 
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