Can I pass parameters into an Ant Script?
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: NetBeansUserFAQ#Freeform_Projects
Applies to: NetBeans 4.1 and later