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:

http://www.netbeans.org/kb/41/freeform-config.html

Source: NetBeans User FAQ