开发者

Maven rewrite filter for Primefaces CSS Theme generated with ThemeRoller

I'm creating custom themes for PrimeFaces with ThemRoller. Each theme is related to a single maven artifact and the jar is created perfectly with the maven-resources-plugin.

The theme is generated with URLs like this:

url("images/ui-bg_highlight-hard.png")

To be used in a jar, the url must be rewrittten into this format:

url("#{resource['primefaces-yourtheme:images/ui-bg_highlight-hard.png']}")

To directly see the theme (and modify it), it would be nicer to keep the css in the format without #{} in the src/main/resou开发者_StackOverflow中文版rces folder. Is there a way to apply a maven filter to automatically rewrite the urls?


You might want to take a look at the maven-replacer-plugin.

You should be able to use a regex to insert the JSF resource loading EL.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜