I am writing context.xml in my project application folder to read resources from outside the application folder.
<?xml version="1.0" encoding="UTF-8"?>
<Context reloadable="true">
<Resources>
`<PreResources base="C:/test"` className="org.apache.catalina.webresources.DirResourceSet" webAppMount="/application" />
</Resources>
<Valve className="org.apache.catalina.valves.RemoteAddrValve" allow=".*" />
</Context>
My question is whether it is possible to set the enviorment variable in the base object of the PreResources tag. This means something like the example below.
<PreResources base="${MYPATH}" className="org.apache.catalina.webresources.DirResourceSet" webAppMount="/application" />`
source
share