Yes, via the Advanced dialog of the Run Target submenu on an Ant script.

You can make a shortcut with some parameters predefined.

You can also make a freeform project based on the Ant script and have it pass some parameters to Ant targets bound to various actions:

Source: NetBeans User FAQ