如何设置编译器选项“处理器”?在日食中?
我尝试按照以下说明配置 DataNucleus 增强器:
如果使用 Eclipse,您需要编辑 项目属性。前往爪哇 编译器->注释处理和 启用项目特定设置 并启用注释处理。然后 转到Java编译器->注解 加工->工厂路径,启用 项目特定设置,然后 将以下 jar 添加到列表中: 数据核增强器.jar , datanucleus-core.jar 、 jdo-api.jar 和 asm.jar 并设置编译器参数 处理器到 org.datanucleus.enhancer.EnhancerProcessor
一切都很棒,直到我看到粗体文本。我似乎无法理解他们的意思。有人可以扩展这句话以使其对新手更友好吗? :)
I'm trying to follow these instructions to configure the DataNucleus enhancer:
If using Eclipse you need to edit your
project properties. Go to Java
Compiler -> Annotation Processing and
enable the project specific settings
and enable annotation processing. Then
go to Java Compiler -> Annotation
Processing -> Factory Path , enable
the project specific settings and then
add the following jars to the list:
datanucleus-enhancer.jar ,
datanucleus-core.jar , jdo-api.jar and
asm.jar and set the compiler argument
processor to
org.datanucleus.enhancer.EnhancerProcessor
It was all brilliant until I got to the bold text. I can't seem to figure out what they mean. Can someone expand this sentence to be more newbie-friendly. :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我相信这是在:
这是您可以输入此类参数的唯一地方,并且它符合您在问题中提到的 DataNucleus 编译指令,关于 来自 javac 的自动调用 ( 仅带注释的类):
事实上,这些指令适用于带注释的类,因此它们符合此“注释处理”设置的条件。
I believe this is in:
This is the only place where you can enter such an argument, and it is compliant with the DataNucleus compilation instruction that you mention in your question, about the Automatic invocation from javac (annotated classes only):
The fact those instructions are for annotated classes make them eligible for this "Annotation Processing" setting.
在 ANT 中尝试这样的操作:
Try something like this in ANT: