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.

Bug 78725

Summary: Supply -pre-run target for build file
Product: java Reporter: tkellerer <tkellerer>
Component: ProjectAssignee: Tomas Zezula <tzezula>
Status: NEW ---    
Severity: blocker    
Priority: P4    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description tkellerer 2006-06-21 08:21:27 UTC
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)
Comment 1 Jesse Glick 2006-06-21 18:42:21 UTC
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"/>
</>