简体   繁体   English

在运行/调试时替换Eclipse插件版本限定符?

[英]Eclipse plugin version qualifier replacement on run/debug?

I have a requirement to check a plugin version number each time it runs. 我需要每次运行时都要检查插件版本号。 I am using the qualifier replacement functionality available in eclipse, but when I am just developing and run/debug from eclipse (as opposed to exporting the plugin to an archive or whatnot) the qualifier does not get replaced, eg version 1.2.3.qualifier stays as 1.2.3.qualifier and not changed to something like 1.2.3.201405141050, that is, the build date. 我正在使用eclipse中可用的限定符替换功能,但是当我只是从eclipse开发和运行/调试时(而不是将插件导出到存档或其他方法),限定符不会被替换,例如版本1.2.3。保持为1.2.3.qualifier且未更改为1.2.3.201405141050之类的内容,即生成日期。 I'd like the build date so it's different every time it runs. 我想要构建日期,因此每次运行时都会不同。 Thanks! 谢谢!

从greg-449的评论来看:只有构建系统处理“限定符”,使用“运行/调试”时没有更新的内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM