开发者

Reading maven command line args

I want to take a build number passed as an argument when running maven and inject it into some HTML files.

To give an example: Build command would be "mvn -DBUILdNUM=1"

I would like to take 开发者_运维问答this and inject it into an html file (in a comment hopefully) replacing something like ${builnum}.

I would also like to use something similar for cache busting my js scripts.


You can use Maven Resource Filtering for this.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜