arduino example.pde [parameters]
Hold down the shift key when you press the upload icon. All the commands used to compile and link and upload the sketch will be shown. It's not a trivial task to get all the arguments right for all the board types.
this would seem to be a prime candidate to split this out from the Java IDE into a make file;
My idea is to use a more sophisticated editor --e.g. syntax check, function parameter tip, code completion, object structure visualisation-- and then ask Arduino to compile and/or upload the whole project --main sketch and related libraries.
Reimplementing the preprocessing step without java is really the thorny issue. All the .pde files are concatenated together. Then a regex-based parser finds the functions and adds prototypes, and adds an include. It also discovers which libraries are used, based on the includes the user wrote. This information from parsing must be fed back into the build process to create the correct dependencies and include paths.Numerous makefiles have been created to mimic the Arduino build. Most of the makefiles have not been maintained well as Arduino has changed its build process. But none, at least that I've seen, completely reproduce the exact Arduino build with preprocessing. Faithfully reproducing the exact build process is not so simple. It can be done. Maybe it has, but I just haven't seen it?
I agree, maniacbug. I'm not sure that it necessarily makes sense for the non-IDE build processes to do all the pre-processing. If someone wants to use standard Makefiles, etc. maybe it makes sense to use standard .cpp files and syntax too, with the Arduino libraries and board.