diff options
author | Joerg Skottke [jsk] <jsk@openoffice.org> | 2010-09-28 13:16:08 +0200 |
---|---|---|
committer | Joerg Skottke [jsk] <jsk@openoffice.org> | 2010-09-28 13:16:08 +0200 |
commit | 97547b76291f2b10045ce4c57b83672391a43db4 (patch) | |
tree | a70fd74c6e52e46e75cc07159b16ad1674bf4f6b /testautomation/global | |
parent | 9341a37b70c52eb5bd4521253355554a027c8823 (diff) |
automationdev300m87: #i112208# - And reverted last change - debug is off again.
Diffstat (limited to 'testautomation/global')
-rw-r--r-- | testautomation/global/tools/includes/required/t_files.inc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/testautomation/global/tools/includes/required/t_files.inc b/testautomation/global/tools/includes/required/t_files.inc index 585aa3c75e5d..65969e0b74a7 100644 --- a/testautomation/global/tools/includes/required/t_files.inc +++ b/testautomation/global/tools/includes/required/t_files.inc @@ -623,17 +623,20 @@ function hFileOpenLocally( byVal sSourcePath as string ) as boolean ' Find out what the name of the target file is going to be sTargetPath = hFileGetLocalPath( sSourcePath ) ' The path + file - ' Copy the file from anywhere to the local user directory if it does not + ' For debugging purposes set global variable gVerbose to TRUE + if ( gVerbose ) then + printlog( CFN & "Copying file" ) + printlog( CFN & "From: " & sSourcePath ) + printlog( CFN & "To..: " & sTargetPath ) + endif + + ' Copy the file from anywhere to the local user directory if it does not ' exist. This behavior was discussed on IRC if ( FileExists( sTargetPath ) ) then 'printlog( CFN & "Re-using existing local copy of workfile" ) warnlog( CFN & "Target file exists, it has not been deleted by prior test" ) endif - printlog( CFN & "Copying file" ) - printlog( CFN & "From: " & sSourcePath ) - printlog( CFN & "To..: " & sTargetPath ) - FileCopy( sSourcePath, sTargetPath ) ' Verify that the file has been created. return an empty string and warn |