Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Relative APT factory paths?(Can't get relative paths to work, what am I missing?)
Relative APT factory paths? [message #1219652] Thu, 05 December 2013 03:55
Eclipse UserFriend
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
Previous Topic:Transitive dependencies in target platform are not resolved when running JUnit Test (not as plug-in)
Next Topic:HELP Eclipse with Javadoc
Goto Forum:
  


Current Time: Mon Apr 28 12:51:37 EDT 2025

Powered by FUDForum. Page generated in 0.03152 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top