Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1030975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T13:51:22+00:00 2026-05-16T13:51:22+00:00

The NetBeans command to run an Ant build for a project is F11 .

  • 0

The NetBeans command to run an Ant build for a project is F11. I always believed that the target that it executes is named “default”. I overrode the default target to do nothing other than simply flag that it ran. When I manually run the target from Ant, or by selecting the particular default target in Netbeans, I get the expected “flagging” behavior.

However, when I press F11, Netbeans runs the init, deps-jar, compile, and jar targets. It seems that I actually did not override the default target, as far as NetBeans is concerned.

I’m doing this so I can effectively decouple my build script from my IDE, but I get the impression that NetBeans isn’t helping with this.

Essentially, what I want is to override the default target so that when I press F11, targets that I specifically add are run. Is this achieved by eliminating the build-impl.xml file?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T13:51:22+00:00Added an answer on May 16, 2026 at 1:51 pm

    After a little luck, I figured out how to define a keyboard short-cut for custom defined targets. Create Shortcut -> Create Keyboard Shortcut does the trick. It seems to me that NetBeans has a predefined F11 target that won’t change. It’s as close as I’ll get, but at least I have an F12 and an Ant target now.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a NetBeans project that I'm trying to compile manually from command-line ant
I run a Java program with the following command line (Edit: in NetBeans 6.8
We want to add command-line support to Netbeans, as in being able to run
I am trying to set command line arguments in a Netbeans 7.1 Java project
I have written a program that is compiled and run in Netbeans and Eclipse
I regularly use right mouse button > Run/Debug Grails Command... from within NetBeans. When
I've created a new J2SE project in NetBeans, and I can run it from
I've been developing Java with Netbeans and have been using the Run command on
In the IntelliJ Scala plugin, there is a Type Info command that when run
In NetBeans 6.7.1, I had a Java project in which I renamed some classes.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.