Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UPDATED: model output copied instead of moved when compiling #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Crowbar/Core/Compiler/Compiler.vb
Original file line number Diff line number Diff line change
Expand Up @@ -681,12 +681,12 @@ Public Class Compiler
Dim debug As Integer = 4242
End Try
Try
File.Move(sourcePathFileName, targetPathFileName)
Me.UpdateProgress(2, "CROWBAR: Moved compiled model file """ + sourcePathFileName + """ to """ + targetPath + """")
File.Copy(sourcePathFileName, targetPathFileName, true)
Me.UpdateProgress(2, "CROWBAR: Copied compiled model file """ + sourcePathFileName + """ to """ + targetPath + """")
Catch ex As Exception
Me.UpdateProgress()
Me.UpdateProgress(2, "WARNING: Crowbar tried to move the file, """ + sourcePathFileName + """, to the output folder, but Windows complained with this message: " + ex.Message.Trim())
Me.UpdateProgress(2, "SOLUTION: Compile the model again (and hope Windows does not complain again) or move the file yourself.")
Me.UpdateProgress(2, "WARNING: Crowbar tried to copy the file, """ + sourcePathFileName + """, to the output folder, but Windows complained with this message: " + ex.Message.Trim())
Me.UpdateProgress(2, "SOLUTION: Compile the model again (and hope Windows does not complain again) or copy the file yourself.")
Me.UpdateProgress()
End Try
'End If
Expand Down