Getting ANT view for Eclipse IDE for JavaScript Web Developers
I use the Eclipse IDE for JavaScript Web Developers from the Eclipse downloads page, but I just discovered that it doesn't include an ANT view, which the Eclipse classic v开发者_开发百科ersion provides. So how do I get the ANT view for the "Eclipse IDE for JavaScript Web Developers" version of Eclipse?
I just installed Eclipse Classic, then added the Eclipse Web Tools Platform as a plugin.
If you don't want to reinstall eclipse, you can instead install "Java Development Tools"
- In Eclipse go to Help -> Software Updates -> Available Software
- Select Java Development Tools and install it
- Restart Eclipse
source: http://www.christian-kalmar.com/activating-missing-ant-plugin-in-pdt-eclipse/
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 <your eclipse install folder> $ ./eclipse -application org.eclipse.equinox.p2.director -repository http://download.eclipse.org/releases/kepler -installIU org.eclipse.ant.ui Installing org.eclipse.ant.ui 3.5.400.v20130514-1341. Operation completed in 19162 ms.
I've noticed that some of the builds don't include all of the Ant tools. I'm not sure how to install them manually. So I usually just get the J2EE build (which has them) and install everything else I need from the update sites.
Right click file. Choose Open As. In Show View Choose Ant.
精彩评论