Skip to content

Commit

Permalink
Convert relative path to absolute path when creating NAntXmlTraceList…
Browse files Browse the repository at this point in the history
…ener
  • Loading branch information
theprash committed Jul 17, 2016
1 parent 40dd0ff commit 80a7ddb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/app/FakeLib/TraceListener.fs
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,12 @@ let mutable AutoCloseXmlWriter = false
/// ## Parameters
/// - `xmlOutputFile` - Defines the xml output file.
type NAntXmlTraceListener(xmlOutputFile) =
let getXmlWriter() = new IO.StreamWriter(xmlOutputFile, true, encoding)
let xmlOutputPath = FullName xmlOutputFile
let getXmlWriter() = new IO.StreamWriter(xmlOutputPath, true, encoding)
let mutable xmlWriter : IO.StreamWriter = null

let deleteOldFile() =
let fi = fileInfo xmlOutputFile
let fi = fileInfo xmlOutputPath
if fi.Exists then
fi.IsReadOnly <- false
fi.Delete()
Expand Down

0 comments on commit 80a7ddb

Please sign in to comment.