This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
For most of the "built-in" targets NB provides the approriate -pre-XXX target. It does provide a -pre-run-test target but there is no -pre-run target that is called before the project is executed. Would be nice to have one by default (and a -pre-run-single as well)
You are talking about Java SE projects I guess. It is true there is no such hook target. Nevertheless you can simply write <target name="run"> <!-- my stuff, then --> <antcall target="PROJNAME-impl.run"/> </>