views:

197

answers:

1

Is there a way to use m4 macros when developing in Java for Eclipse, ie. making sure the preprocessor is automatically invoked before Eclipse compiles?

Or has anyone used another preprocessor successfully with Eclipse?

+1  A: 

You can specify an arbitrary builder on an Eclipse project, and order the builder so that it is executed before the Java builder is run.

To define the new builder, open the project properties (right click->Properties or alt-enter), select Builders then New.... Select Program, then in the dialog configure the builder (hopefully you know what needs to be done here) and select OK. Back in the Builders page you can then select your new builder and select Up until it is before the Java Builder

Rich Seller
Please I require to do this, can you please enlighten the Program Configuration how it can be done.
y ramesh rao