If you need/want C-style preprocessor macro support in a Java project, then try Prebop. Prebop uses Ant and provides a plugin for Eclipse. Here’s a good explanation of the necessary steps to setup a build script within Eclipse.
Name (required)
Mail (will not be published) (required)
Website