Gangmax Blog

Add Ant parameters in Eclipse

In some cases, when running ant build, some parameters of ant are needed. If we run ant from command line, we can add the parameters as “-Dproperty=value” within the ant command(from here).

However, if we run the ant build inside an Eclipse ant project, we can’t do it directly. In this case, we can do it this way:

  1. Go to “Window -> Pereference -> Ant -> Runtime -> Properties”;

  2. Click the “Add Property…” button and add what you want.

That’s it.