chipprogrammer wrote:How does one force UES to use relative paths for files, and store only the relative paths into the .pui file?
First, open Advanced - Settings or Configuration - File handling - Advanced
- check setting Save project information for use on multiple systems
- uncheck setting Store project user interface (pui) files in profile directory
Now the the project user interface file is named Project.pui
and stored in same directory as project file Project.prj
Next it is necessary that in Project Settings
window the Project directory
set as by default. So after opening the project press Alt+Shift+S
to open Project Settings
window, select the path of the Project directory
at top, press key DEL
to remove project directory path and save this modification with clicking on button Close
This results in Project DirectoryU=
being stored in project file Project.prj
. So there is no project directory stored anymore in project file.
Please note that UltraEdit / UEStudio shows the Project directory
at top with a directory path on next opening Project Settings
window. However, the Project DirectoryU=
entry in project file Project.prj
keeps empty as long as the Project directory
path string in edit field in Project Settings
window is not edited or the button Browse
is used to browse to a directory and set selected directory as project directory.
All files and directories added now after deletion of the project directory path with a relative path to project file Project.prj
in the project file and in project user interface file Project.pui
and the storage location of the project directory tree and its files does not longer matter.
It is necessary to replace once
all project paths by corresponding relative paths in case of a project file Project.prj
contains already directories and files with full qualified names. This can be done after opening the project by opening File View
(UltraEdit) respectively Workspace Manager
(UEStudio), select tab Project
, click with secondary (right) mouse button on project name at top of the list and click with primary (left) mouse button on context menu Edit project file
to open the project file for editing in UltraEdit/UEStudio. A file/folder in directory of project file Project.prj
must be stored in this file without any path. On file/folder being in parent directory of the directory containing the project file, the file/folder must be stored in project file with ..\
(ASCII/ANSI or UTF-16 encoded) respectively ..+AFw-
(UTF-7 encoded) at beginning. And files/folders being in a subdirectory of the directory containing the project file must be stored in project file with subdirectory name (or subdirectory tree) at beginning. Don't forget to save the project file after all manual modifications.
Last, after project file Project.prj
does not contain anymore the project path anywhere, it is advisable to close all currently opened project files and re-open them so that finally on closing of project the opened files are also stored with relative path in project user interface file Project.pui