Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » how to save changes in GnuMakefile programmatically?
how to save changes in GnuMakefile programmatically? [message #158396] Fri, 18 November 2005 09:31
Eclipse UserFriend
Originally posted by: Knadine.t-online.de

hello,

Can somebody tell me how to save a GnuMakefile?
I opened an existing GnuMakefile in my code and added a directive like
this:

-----

file = ResourcesPlugin.getWorkspace().getRoot().getFile(filePath);

GNUMakefile gnuFile = (GNUMakefile)
MakeCorePlugin.getDefault().createMakefile(file);

...

gnuFile.addDirective(newDirective);

-----


But when I open the file the new directive is not there. I checked the
contents of gnuFile and the directive has been added. There doesn't seem
to be a save() function for a GNUMakefile... so how can I manage saving
the changes in the file?

thanx
sth_Weird
Previous Topic:error while making a shared library
Next Topic:Problems with linking a library
Goto Forum:
  


Current Time: Fri Oct 18 04:12:37 GMT 2024

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

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

Back to the top