Urlrewrite using maven property

Home / Uncategorized / Urlrewrite using maven property

Question:
I’m trying to write a outbound rule in urlrewrite.xml that gets its value from a maven property, depending on which maven profile i’m using, like this:
/web/(.*)
${urlrewrite.path}

Looking in the urlrewrite.xml in the target folder, it seems to get the correct value:
/web/(.*)
/ecs/$1

However, when I access the page it gives me the following error:
INFO: org.tuckey.web.filters.urlrewrite.substitution.VariableReplacer ERROR: function ${urlrewrite.path} type ‘urlrewrite.path’ not a valid type

Anyone know if this is possible?


Answer:

Read more

Leave a Reply

Your email address will not be published. Required fields are marked *