[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [pde-dev] Resolving fullpaths from .classfile
|
> does my previous inputs helped u. ? if so. im
happy,
yeah pradeep they did help
me alot thanks for that..
> I think the problem will get solved if you get
the absolute
>location of a project right?
>for eg. there is a Project called myProject in workspace, i want
to get the
>absolute path
>where it get mapped to eg the project myProject may refer
>d:\ravikanth\myproject\.....
Yeah you are right till there..
>get the workspace first
>
IWorkspaceRoot myWorkspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
>
>2. get the instance of current working project which you want to build
> IProject myWebProject = myWorkspaceRoot.getProject("Myproject");
>
>3. get the list of projects used by the current project if any.IProject[]
>getReferencedProjects()
> Returns the projects referenced
by this project. iterate throu
>all the projects in the workspace,
>
i was already using getReferencedProjects()
to get all the projects being referenced. ..But the problem lies
here , it only gives me the project referenced,,,i.e if i specify
my project "Project1" depends on "Project2" , but i
didnt specify this instead i specified in the java buildpath , my project
"Project1" is dependent on some class folder of project2
i.e in my case "Project2/bin" .
so no way i can get the project
name from getReferencedProjects();
Another case is that if i
keep my class files in some folder and then say addclassfolder from java
buildpath then it will ask me to enter a physical name and asks me to map
this name to the actual locaiton , at that time,, it becomes even more
difficult for me to find the actual full path..
<classpathentry kind="lib"
path="myclassses"/>
where myclasses is the name
i have given to the platform and actually this myclasses points to c:\myeclipseclasses\bin
folder.
how can i resolve if the
case is above
Thanks for continuous help
Rk
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.