Opened 14 years ago

Closed 14 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:
Cc:

Description

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

ex. INCLUDE "%mapfiles_path%/layer_regions.map"

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

Change History (1)

comment:1 by sdlime, 14 years ago

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...

Steve

Note: See TracTickets for help on using tickets.