Relative APT factory paths? [message #1219652] |
Thu, 05 December 2013 03:55 |
Eclipse User |
|
|
|
Hi,
we've developed a custom annotation processor using APT and it works fine if we set the .factorypath file to something like:
<factorypathentry kind="WKSPJAR" id="/ourproject/lib/our_ap.jar" enabled="true" runInBatchMode="false"/>
Where "ourproject" is the directory name of the project. The issue we have is that we can't work with a hardcoded project name as many of our developers check out multiple versions of the same project under different names and will therefore have to edito .factorypath every time they check out the project under a different name. So we need the path to be relative to the current project, or use some environment variable such as PROJECT_LOC.
Problem is that we can't get this to work. I can get it to use "../myproject/lib/our_ap.jar" so in some sense relative paths work, but using ${PROJECT_LOC}, ./ or other combinations gives me an error about missing our_ap.jar.
I'm probably missing something really obvious, so I'd appreciate if someone can set me straight here!
BR,
Chris
|
|
|
Powered by
FUDForum. Page generated in 0.03152 seconds