Changeset 4135
- Timestamp:
- Jan 20, 2014, 11:18:06 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lang/tcl/scripts/task.tcl
r4127 r4135 372 372 if {[info exists _resources(-resultdir)]} { 373 373 set rdir $_resources(-resultdir) 374 } else { 375 set rdir "." 374 376 } 375 377 } elseif {$resultdir ne ""} { … … 379 381 if {$status == 0 && $rdir ne ""} { 380 382 catch { 381 if {![file exists $_resources(-resultdir)]} { 382 _mkdir $_resources(-resultdir) 383 file delete -force -- $file 384 if {![file exists $rdir]} { 385 _mkdir $rdir 383 386 } 384 387 set tail [file tail $file] 385 set fid [open [file join $ _resources(-resultdir)$tail] w]388 set fid [open [file join $rdir $tail] w] 386 389 puts $fid "<?xml version=\"1.0\"?>" 387 390 puts $fid [$result xml] 388 391 close $fid 389 file delete -force -- $file390 392 } 391 393 } else {
Note: See TracChangeset
for help on using the changeset viewer.