无法在 PDE 构建中收到 Eclipse 编译器警告
因此,我们有一个构建了多个插件的 Eclipse 产品版本。对于每个插件,我们都有一个设置文件,用于定义我们想要了解的 JDT 编译器警告。它在我们的 Eclipse 环境中工作正常,但在构建时却不行。
Eclipse 帮助 告诉我添加“javacProjectSettings=true”,问题是,它并没有真正工作。
我已将其添加到产品构建的 build.properties 文件中。我已将其添加到每个插件的 build.properties 中。 但我根本没有注意到任何变化。感觉我好像错过了什么?
看起来与产品构建相关的 JavaC 参数 build.properties 文件:
logExtension=.log
javacDebugInfo=true
javacFailOnError=true
javacVerbose=true
compilerArg=-enableJavadoc
javacSource=1.5
javacTarget=1.5
javacProjectSettings=true
So, we have a Eclipse product build that builds several plugins. For each of these plugins we have a settings file that defines what JDT compiler warnings we want to know about. It works fine in our Eclipse environment, but not when building.
Eclipse help that tells me to add "javacProjectSettings=true", problem is, its not really working.
I've added it to the build.properties file for the product build. I've added it to the build.properties in each plugin.
But I'm not noticing any change at all. It feels like I'm missing something?
The JavaC arguments that seem relevant from the product builds build.properties file:
logExtension=.log
javacDebugInfo=true
javacFailOnError=true
javacVerbose=true
compilerArg=-enableJavadoc
javacSource=1.5
javacTarget=1.5
javacProjectSettings=true
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
javacProjectSettings=true
属性需要放入每个包的 build.properties 中。它不会进入顶级产品构建 build.properties。如果您不想更改各个捆绑包的 build.properties 文件,那么您可以尝试设置类似
但我不知道此相对路径是否有效。
否则,您需要将compilerArg与
-err:
和-warn:
一起使用,这些在JDT 帮助The
javacProjectSettings=true
property needs to go in the build.properties for each bundle. It does not go in the top level product build build.properties.If you don't want to change the individual bundles' build.properties files, then you could try setting something like
But I don't know if this relative path works or not.
Otherwise you would need to use compilerArg with
-err:
and-warn:
which are described in the JDT help