Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Empty build_files variable(Trying to use an external builder, need build_files)
Empty build_files variable [message #806864] Sat, 25 February 2012 16:22 Go to next message
Ian Edwards is currently offline Ian EdwardsFriend
Messages: 1
Registered: February 2012
Junior Member
I am trying to put together an external builder for our (ancient) build system, specifically I want to be able to kick off a subset of our build when a particular file is modified.

All that I need to make this work, I believe, is a list of the files that have been modified to cause the build, when I get this, I can simply cd to the directory in which each file exists and issue our bespoke build command - iterating over all of the modified file directories in this way will result in the build I want.

Looking at the documentation, and indeed the description of the variable 'build_files' I believe I should get precisely that - a list of the files that caused the build to be initiated - but it is coming back with an empty list...

What am I doing wrong?

The description I see for build_files is:

"Returns the set of absolute file system paths whose modification caused the current build. A list of the characters, 'a' (added), 'c' (changed), 'r' (removed), 'f' (files only), 'd' (directories only), can be supplied as an argument to limit the file list to just those types of deltas. Defaults to all deltas."

The CDT version I'm using is: 6.0.2.201002161416 (in RTC 3.0.1.1, Eclipse 3.5.2.R35) but I have also tried using CDT 8.0.2.201202111925 (using RTC 3.0.1.1 under Eclipse 3.7.1.r37) and it also doesn't seem to do what I expect.

[Updated on: Sat, 25 February 2012 21:07]

Report message to a moderator

Re: Empty build_files variable [message #837371 is a reply to message #806864] Thu, 05 April 2012 15:37 Go to previous messageGo to next message
John Hubbard is currently offline John HubbardFriend
Messages: 2
Registered: April 2012
Junior Member
I think that I am seeing the same problem. I have manually defined the build command as
/home/jhubbard/.bin/eclipseMake
and the auto build should pass
${build_files}
incremental build passes
gcc_all
and clean passes
gcc_clean
the incremental build, and the clean both work as expected but ${build_files} always gets expanded to nothing. e.g.

**** Build of configuration Default for project atstcpp ****

/home/jhubbard/.bin/eclipseMake
ERROR need at least one argument!

**** Build Finished ****

I had also tried ${selected_resource_lock}. That seems to read the resource that I have open when editing my build configuration and remembers it for ever. For example if I have Foo.cpp selected when I edit my build configuration my eclipseMake script is always passed Foo.cpp even after I start editing and safe the file Bar.cpp.

I'm using eclipse 3.7.1r37 with CDT Version 8.0.2.201202111925 on a Linux x86_64 machine.
Re: Empty build_files variable [message #837408 is a reply to message #837371] Thu, 05 April 2012 16:28 Go to previous messageGo to next message
John Hubbard is currently offline John HubbardFriend
Messages: 2
Registered: April 2012
Junior Member
I've gone ahead and opened up a bug for this issue. The ID is 376199. I'd post a link but apparently I haven't posted enough messages yet to be able to post links yet.

https :// bugs dot eclipse dot org/bugs/show_bug.cgi?id=376199
Re: Empty build_files variable [message #850521 is a reply to message #837408] Fri, 20 April 2012 05:22 Go to previous messageGo to next message
Andrew Wiles is currently offline Andrew WilesFriend
Messages: 13
Registered: August 2011
Location: SH
Junior Member
same problem.
Version: Indigo Service Release 2
CDT:Version: 8.0.2.201202111925
Re: Empty build_files variable [message #1052869 is a reply to message #837408] Tue, 30 April 2013 19:41 Go to previous message
Scott Bell is currently offline Scott BellFriend
Messages: 5
Registered: July 2009
Junior Member
Any news on this? As we are dealing with C/C++ we need things like this. It's not Java, you know! Smile

PS: I just updated the bug report for Juno.

[Updated on: Tue, 30 April 2013 19:56]

Report message to a moderator

Previous Topic:build_files Environment Variable
Next Topic:multiple main functions within one C project
Goto Forum:
  


Current Time: Tue Apr 23 14:57:45 GMT 2024

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

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

Back to the top