Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Getting Projectpath in Custom CommandLineGenerator Interface
Getting Projectpath in Custom CommandLineGenerator Interface [message #184943] Fri, 16 February 2007 10:10 Go to next message
Eclipse UserFriend
Hello mates,
i have again a little problem in my plugin project. thx for your help so
far, you help me on a lot.
I replaced the standard commandline generator with my own. But when i
write some java functions into it, i have the problem that i cant get the
path of the managed C project. Instead running in the project folder, the
java code runs in the folder of the eclipse ide.

enjoy your day

greetings
Re: Getting Projectpath in Custom CommandLineGenerator Interface [message #185147 is a reply to message #184943] Mon, 19 February 2007 03:42 Go to previous messageGo to next message
Eclipse UserFriend
no one has a solution to get the path of the c/c++ project wich the
commandlinegenerator is running for ? without the path the custom
commandlinegenerator is quite useless for me :(
Re: Getting Projectpath in Custom CommandLineGenerator Interface [message #185212 is a reply to message #185147] Mon, 19 February 2007 14:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dmsubs.NOSPAM.consertum.com

To get a project from an ITool (with suitable null pointer guards etc):
IBuildObject ibo = tool.getParent() ;
IToolChain tc = (IToolChain) ibo ;
IConfiguration config = tc.getParent() ;
IManagedProject mproject = config.getManagedProject() ;
IResource resource = mproject.getOwner() ;
IProject project = (IProject) resource ;

From the project, you can find it's location etc...

HTH
--
Derek


patrick Schmitt wrote:
> no one has a solution to get the path of the c/c++ project wich the
> commandlinegenerator is running for ? without the path the custom
> commandlinegenerator is quite useless for me :(
>
>
>
Re: Getting Projectpath in Custom CommandLineGenerator Interface [message #185268 is a reply to message #185212] Tue, 20 February 2007 06:01 Go to previous message
Eclipse UserFriend
much thx, its working perfectly :)
Previous Topic:cdt and opengl, missing lib
Next Topic:An internal error occurred during: "Launching"
Goto Forum:
  


Current Time: Tue Jul 22 15:42:35 EDT 2025

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

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

Back to the top