Application module code on the server can access file resources relative to the module root by using the appModuleResource
expression. The value of this expression is evaluated at runtime, so it always maps to a location relative to the current location of the module.
The syntax for this expression is:
{appModuleResource?moduleID=
module-name
&resourceURI=
relative-path
}
For example, to set the value of a property named myFile
to a file called resource.txt
in the lib
subdirectory of the module MyModule
:
myFile={appModuleResource?moduleID=MyModule&resourceURI=lib/resource.txt}