File transfer using .put and CLEARCASE_VIEW
I want to transfer a file that's in a clearcase dynamic view using this .put command:
The thing is when I set the CLEARCASE_VIEW variable, BuildForge starts building the path like this:
Of course I get an error because the file is in absolute_file_path. If I try this without the CLEARCASE_VIEW var, the path that I get is this:
I've test the same step with a non-clearcase file and without the CLEARCASE_VIEW var and the transfer worked. The step's dir is set to / and it's path is set to absolute.
.put absolute_file_path/filename dest_server:filename
The thing is when I set the CLEARCASE_VIEW variable, BuildForge starts building the path like this:
/view/view_name/server_path/absolute_file_path/filename
Of course I get an error because the file is in absolute_file_path. If I try this without the CLEARCASE_VIEW var, the path that I get is this:
/server_path/absolute_file_path/filename(which is fine when my server path is /)
I've test the same step with a non-clearcase file and without the CLEARCASE_VIEW var and the transfer worked. The step's dir is set to / and it's path is set to absolute.
One answer
Now I've tried setting the absolute_file_path in the step's dir (step's path is set to absolute), and this .put command:
And I've got this error:
It seems that is reading the file but there's an error when it tries to write it.
.put filename dest_server:filename
And I've got this error:
READ Read of /view/view_name/absolute_file_path complete.
EXEC 0
EXEC Writing /view/view_name/absolute_file_path to X:/BUILDFORGE/filename
EXEC 4
It seems that is reading the file but there's an error when it tries to write it.