<< Click to Display Table of Contents >> RayPack > 7.3 u6 > User Guide > Reference and Cheat Sheets > Custom RayPack Installer Database Tables RPSourcePath table |
The RPSourcePath table contains the columns shown in the following table.
Column |
Type |
Key |
Nullable |
---|---|---|---|
File_ |
Identifier (s72) |
Y |
N |
Path |
Text (S0) |
N |
Y |
File_
Name of the file to which a given source path applies.
Path
The path to the source file.
The value in the Path column can contain special syntax that will be resolved to actual values on build. During building, RayPack collects the files pointed by the value from the Path column. All files must be existing in order to successfully build the package.
The value from the Path column should contain the full absolute path to the resource, for example:
C:\Resources\file.txt
In order to avoid hardcoding values and provide interoperability of projects, several formatted syntaxes are available. When importing any file, RayPack will automatically try to avoid hardcoding the value by looking up the location of the project and the current environment variables for a best match. If nothing is found, a full absolute path will be used.
The following syntax is available in the Path column:
String |
Example & Resolving |
||
---|---|---|---|
<ProjectFile> |
Example: <ProjectFile>.Sources\fileA.txt
Given that the project is saved as C:\RayPack\Projects\ProjectA.rpp
the value will be resolved to: C:\RayPack\Projects\ProjectA.rpp.Sources\file.txt |
||
<ProjectFolder> |
Example: <ProjectFolder>\Sources\fileA.txt
Given that the project is saved as C:\RayPack\Projects\ProjectA.rpp
the value will be resolved to: C:\RayPack\Projects\Sources\file.txt |
||
<%Environment%> |
Example: <%WINDIR%>notepad.exe
The environment variables are resolved according to the system configuration: C:\Windows\notepad.exe |
||
.\ (at the beginning of the path) |
Example: .\fileA.txt
Given that the project is saved as C:\RayPack\Projects\ProjectA.rpp
the value will be resolved to: C:\RayPack\Projects\ProjectA.rpp.Sources\Files\file.txt
|
||
($VariableName) |
Uses the path of variable with a given name as defined in RPVariable table. |