Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[pde-dev] Resolving fullpaths from .classfile


Thanks pradheep for your replies,,

But some how my problem is not still solved, i was not able to get the full resolved paths from .classpath.

for my customised compiler to run, i need to give full classpath, which i am settingup programtically by reading the .classpath file.  But my problem comes in these type of scenarios , i will explain,,

Suppose i have one project named  "Project1" and its classpath file looks like this,
<classpath>
    <classpathentry kind="src" path="srcfold"/>
    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
    <classpathentry kind="lib" path="/Project2/bin"/>
    <classpathentry kind="output" path="bin"/>
</classpath>ForwardSourceID:NT000061DE    

I didnt specify that  my project " Project1" depends on Project2, but i specified in buildpath, add this external class folder "project2/bin" so the classpath like above has formed.

Now i need to resolve the classpath of the above classpathentry of type CPE_LIBRARY  . This project2 is not in default work space it is somewhere on my disk.  How can i resolve these sort of classpaths.

This is only one scenariio,, but i have so many problems resolving  relative paths.  

Can any one please help me how to resolve these sort of relative paths.  makeAbsolute() method seems to be not working fine. it is not giving me the absolute path.


Thanks in advance...

Rk

kjksdfsdkljfd
DISCLAIMER: The information contained in this message is intended only and solely for the addressed individual or entity indicated in this message and for the exclusive use of the said addressed individual or entity indicated in this message (or responsible for delivery
of the message to such person) and may contain legally privileged and confidential information belonging to Tata Consultancy Services. It must not be printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person other than the addressee. 
Unauthorized use, disclosure or copying is strictly prohibited and may constitute unlawful act and can possibly attract legal action, civil and/or criminal. The contents of this message need not necessarily reflect or endorse the views of Tata Consultancy Services on any subject matter.
Any action taken or omitted to be taken based on this message is entirely at your risk and neither the originator of this message nor Tata Consultancy Services takes any responsibility or liability towards the same. Opinions, conclusions and any other information contained in this message 
that do not relate to the official business of Tata Consultancy Services shall be understood as neither given nor endorsed by Tata Consultancy Services or any affiliate of Tata Consultancy Services. If you have received this message in error, you should destroy this message and may please notify the sender by e-mail. Thank you.


Back to the top