Managing deltas in .classpath files [message #136338] |
Fri, 26 September 2003 05:40  |
Eclipse User |
|
|
|
Hi,
I was planning on putting platform specific changes to the .classpath
file of some project in some file called specific.xml and then include
it using the following XML code:
<!DOCTYPE project [
<!ENTITY noncommonclasspath SYSTEM "file:specific.xml">
]>
I can then insert it in .classpath using &noncommonclasspath.
Even though the file is at the same place as .classpath, the parser
cannot find it, which I find strange :) If I provide an absolute path,
it works, but its undesirable, as it undoes all the benefit of having a
general file called specific.xml for all the non-common classpath
entries (we would have CVS conflicts again, where we were just trying to
get rid of them, by putting the platform specific stuff in one file).
Any idea why this is not working ?
I presume it all depends on how the parser resolves relative URIs.
Is there some way I can tell it to look in the same place as where it
found the parent XML file which it is parsing at that moment ?
best regards,
Vincent
|
|
|
Re: Managing deltas in .classpath files [message #136359 is a reply to message #136338] |
Fri, 26 September 2003 05:59  |
Eclipse User |
|
|
|
And here is the answer for posterity :)
The Apache Xerces built into eclipse seems to resolve relative paths
relative to the eclipse install directory, so if you want to reference
files inside a certain project, you can provide the following uri:
<!DOCTYPE project [
<!ENTITY noncommonclasspath SYSTEM"file:workspace/projectname/file.xml">
]>
best regards,
Vincent
|
|
|
Powered by
FUDForum. Page generated in 0.02771 seconds