I have a Java project that uses some autogenerated source code. This source code is produced by a command-line tool --- Bison, actually --- from a special source file.
I would like a way to have the Java source automatically regenerated whenever necessary when I press the 'build' button in Eclipse. Is this possible, and if so, how?
Normally I'd integrate this into the project makefile, but of course this is Java, and it doesn't use makefiles. I've looked at ant, but ant seems rather hostile to traditional command-line tools. I know something like this is possible with the built-in Eclipse builder because the Android development kit does it; so what is it doing?