简体   繁体   中英

Do editors for Ant scripts exist?

I have many ant files with more than 10000 lines. Do editors or plugins exist for Eclipse that can help me author the files, eg press F3 to find target?

Yes, Eclipse has an Ant Editor .

The Ant editor provides specialized features for editor Ant buildfiles. Associated with the editor is a Ant buildfile specific Outline view which shows the structure of the Ant build file. It is updated as you edit the buildfile

The editor includes the following features: - Syntax highlighting - Content/code assist (including Ant specific templates) - Annotations

The most common way to invoke the Ant editor is to open an Ant buildfile from one of the navigation views or Package Explorer using pop-up menus or by clicking the file (single or double-click depending on your preference settings).

When a build file is open in the Ant editor, the Outline view provides useful high-level information:

在此输入图像描述


There is also a dedicated Ant view, which is fairly similar to the outline view (but does not require the build file to be in an editor): Window → Show View → Other...

在此输入图像描述

Once you have opened the Ant view, you can add a buildfile to it, and the view will show targets, etc.:

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM