relative paths in classpath [message #122114] |
Wed, 26 November 2003 05:38 |
Eclipse User |
|
|
|
Originally posted by: fschaper.zerodegree.de
Hello,
since I'm not working alone on a project and I have to expect people to have
different path's for their workspaces, I would like to specify relative
paths based on the project root for external jar's.
I ended up changing the ".classpath" file manually to a relative location
based on the project root
....
<classpathentry kind="lib" path="lib/axis.jar"/>
....
however this was fruitless.
Eclipse reports the jar missing at "<projectname>/lib/axis.jar".
Since I expect more people than just me trying to share their project via
CVS shipping with all the build requirements I guess there _is_ a solution
out there. I hope somebody shares his with me ...
I'm using the win32 build of eclipse (2.1.2) btw.
../regards
Florian
|
|
|
|
Re: relative paths in classpath [message #122320 is a reply to message #122239] |
Wed, 26 November 2003 13:54 |
Eclipse User |
|
|
|
Originally posted by: fschaper.zerodegree.de
Jerome Lanneluc wrote:
> Have you tried using classpath variables?
>
> Jerome
Well thanx Jerome, using variables works. I defined a variable in eclipse
and could use that in the ".classpath" file
....
<classpathentry kind="var" path="BLK_LIBS/axis.jar"/>
....
So my coworkers would now only have to point the variable at the correct
folder and be done with it. However I thought there might be a variable
already set for the root of the project or whatever .. I thought seeing a
project on the web that used relative path's without the need of extra
variables in their eclipse project.
|
|
|
Powered by
FUDForum. Page generated in 0.02965 seconds