Opened 8 years ago

Closed 8 years ago

#3279 closed defect (wontfix)

INCLUDE directive seems not to work with variable substitution

Reported by: lellomarello Owned by: sdlime
Priority: normal Milestone: FUTURE
Component: MapServer C Library Version: 5.4
Severity: normal Keywords:


INCLUDE directive in mapfiles seems not to work with variable substitution.

ex. INCLUDE "%mapfiles_path%/"

return the following error: msLoadMap(): Premature End-of-File. msyylex(): Unable to access file. Error opening included file "%mapfiles_path%/".

Change History (1)

comment:1 Changed 8 years ago by sdlime

Milestone: FUTURE
Resolution: wontfix
Status: newclosed

It's not documented to work and really can't work. The reason being that substitution is done post-include parsing. The runtime substitution is done on a mapObj not a map file. Substitution within an include file is supported.

Wish I had better news but I don't, sorry. Marking as won't fix...


Note: See TracTickets for help on using tickets.