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:
Go to “Window -> Pereference -> Ant -> Runtime -> Properties”;
Click the “Add Property…” button and add what you want.