简体   繁体   中英

Relative path for annotation processor in Eclipse

I have a AppEngine connected Android Project, the .factrypath file of the project looks like

<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 . 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.?

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? Maybe wildcard * can also be used, but I could not get it to work on 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?

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. There isn't anything you can do as an end user to improve this. You should file a bug report for Google.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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