Thursday, November 21, 2013

Eclipse ANT View/Editor Missing

Installing the Eclipse ANT plugin directly

All Eclipse distributions have ANT Java based build support (you'll find 'org.apache.ant_*' in your Eclipse install) however unless you also install the Eclipse Java development tools (JDT) you will be missing the ANT Editor view.

Rather than installing the entire JDT package we can install the ANT UI component directly using Eclipse's P2 director through the command line as follows

 $ cd 
 $ ./eclipse -application org.eclipse.equinox.p2.director -repository -installIU org.eclipse.ant.ui
 Installing org.eclipse.ant.ui 3.5.400.v20130514-1341.
 Operation completed in 19162 ms.

Afterwards to activate the editor go to 'Window > Show View > Other > Ant' or right click 'XML' files and choose 'Open with > Other > Ant Editor'.

If you found this useful feel free to follow me on twitter twitter @danielsokolowski.

1 comment: