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 196133 - Run action (F6) should consider custom override of "run"-target in build.xml
Summary: Run action (F6) should consider custom override of "run"-target in build.xml
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-28 21:46 UTC by converginglight
Modified: 2011-03-01 02:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description converginglight 2011-02-28 21:46:30 UTC
Sometimes it would be very handy to be able to alter the default run action (in most cases accessed by user by pressing F6, or right-clicking the project and selecting "run").

currently, custom overriding of "run" in build.xml sadly does NOT alter this action. Selecting the "run" action using the context menu of build.xml, however, works (but is NOT as handy as pressing F6).

Furthermore, I consider this as an inconsistency (F6 versus build.xml->run, leading to different actions).


<project name="Test123" default="default" basedir=".">
    <import file="nbproject/build-impl.xml"/>

    <target depends="init,compile" name="run">
        <echo>AAAAAAAAAAAAAAAAAAAAAA</echo>
    </target>
</project>
Comment 1 Jesse Glick 2011-02-28 23:25:00 UTC
Overriding the run target in build.xml works fine. You just need to disable Compile on Save to indicate that you wish to go through the Ant script for all actions.
Comment 2 Vince Kraemer 2011-03-01 02:25:24 UTC
maybe we should add a note to that effect in the build.xsd file so users can find out about this before they file an issue?