Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经设置了 Eclim 的 :ProjectSettings (org.eclim.project.version),我现在想知道如何在我的主类中打印出来。
System.out.format("Version: %s", org.eclim.project.version);没用:(
System.out.format("Version: %s", org.eclim.project.version);
即使我也不太了解,但这来自我搜索过的内容:
首先,“org.eclim.project.version”用于在 xml 文件或属性文件中设置项目属性。然后你可以通过注解@Version 来访问它
你可以参考: http ://eclim.git.sourceforge.net/git/gitweb.cgi?p=eclim/eclim;a=commitdiff;h=b8c2b7f90c4eb459c7913eb36948a7a2feae95b2