简体   繁体   English

Eclipse中注释处理器的相对路径

[英]Relative path for annotation processor in Eclipse

I have a AppEngine connected Android Project, the .factrypath file of the project looks like 我有一个AppEngine连接的Android项目,该项目的.factrypath文件看起来像

<factorypath>
<factorypathentry kind="VARJAR" 
id="ECLIPSE_HOME/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201205091048-rel-r37/gwt-      
2.4.0/requestfactory-apt.jar" enabled="true" runInBatchMode="false"/>
<factorypathentry kind="EXTJAR" id="/home/vince/git/requestfactory-apt-2.4.0.jar" 
enabled="true" runInBatchMode="false"/>
</factorypath>

Though I am using variable ECLIPSE_HOME . 虽然我正在使用变量ECLIPSE_HOME Can a path be given so that when the project is fetched where gwt-2.4.0 folder is changed to some other version, it will still work.? 可以给出一个路径,以便在提取项目时将gwt-2.4.0文件夹更改为其他版本时,它仍然可以工作吗?

I saw kind="plugin" and org.eclipse something for annotation.. Can something similar be done for this to replace the almost absolute path given above? 我看到kind =“ plugin”和org.eclipse需要注释。可以为此做些类似的事情来替换上面给出的几乎绝对路径吗? Maybe wildcard * can also be used, but I could not get it to work on Linux.. 也许也可以使用通配符*,但我无法在Linux上使用它。

I saw kind="plugin" and org.eclipse something for annotation.. Can something similar be done for this to replace the almost absolute path given above? 我看到kind =“ plugin”和org.eclipse需要注释。可以为此做些类似的事情来替换上面给出的几乎绝对路径吗?

Yes. 是。 There is an API that a plugin writer can use to contribute annotation processors straight from the plugin without resorting to what you see above. 插件编写者可以使用一个API直接从插件中贡献注释处理器,而无需借助上面看到的内容。 There isn't anything you can do as an end user to improve this. 作为最终用户,您无法做任何改善此事的事情。 You should file a bug report for Google. 您应该为Google提交错误报告。

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

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