Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run as Ant build' Missing in my eclipse

Tags:

eclipse

ant

I am unable to right click and run my build.xml file by choosing 'Run as Ant' . Whenever I click it says run configuration and that goes into running Java file options .

like image 781
RaulGupta Avatar asked Aug 30 '15 19:08

RaulGupta


People also ask

How do I run Ant build in Eclipse?

Tip. You also can start an Ant build by highlighting the project in the Package Explorer and selecting Run→ External Tools→ Run As→ Ant Build. If you want to select the targets to run, you also can select Run→ External Tools→ External Tools→ Targets, select the targets you want to run, and click Run.

Where is build option in eclipse?

In the model browser, right‑click the active configuration for your Eclipse project and select Build Configuration. Choose Project > Build Automatically to build from Eclipse using Java™ or C/C++ build tools.

How do you trigger an Ant build?

To run the ant build file, open up command prompt and navigate to the folder, where the build. xml resides, and then type ant info. You could also type ant instead. Both will work,because info is the default target in the build file.

Where is build xml in Eclipse?

The build. xml file can be created by using the context menu on plugin. xml and selecting PDE Tools > Create Ant Build File.


2 Answers

This works for me. Go to.. 1. Help -> Install New SoftWare

  1. Work With -> "http://download.eclipse.org/releases/juno"
  2. Drop down list "General Purpose Tools"
  3. select "Eclipse Plug-in Development Environment"

After doing this...eclipse started showing option of Ant Build in Run as

like image 137
RaulGupta Avatar answered Sep 25 '22 02:09

RaulGupta


In Eclipse Neon, the Ant Build moved to Run > External Tools > External Tools Configurations ... it is not located in the default Run anymore.

enter image description here

like image 32
col.panic Avatar answered Sep 27 '22 02:09

col.panic