I am new to eclipse and wanted to do the following;- 1) how to use my custom build commands with eclipse. Till now I only saw make all?I use a shell script for building my project, how can I use that in eclipse environment. 2) When I create a new project with the existing source code, it doesn't add the files, without building the code and if code fails to build (because I generally don't have make all). How to resolve this issue
You can add a custom builder in the "Builders" category of the project properties.
project->properties->builders->new
there you can also deactivate the default eclipse builders..
hope that helped
In addition to what smeg4brains said and assuming that you are using the CDT plugin you can go to:
project -> properties -> C/C++ Build
Uncheck Use default build command
on the Builder Settings
tab and replace make with e.g. scons
.
On the Behaviour
tab you can then specify the target to call for the Build
and Clean
phase.
To resolve your second issue open the Project
menu and uncheck Build automatically
.
This will prevent Eclipse from building the project when it thinks it is necessary.
If you want to add other your own commands then the easiest way is to write Ant file for your project so by clicking once you can execute all your commands.To see how to write Ant file click here