Apache ANT独立GUI,可轻松执行目标

时间:2010-11-17 22:08:33

标签: java apache user-interface ant

有没有人知道为Apache ANT编写的GUI。我们正在研究开发一个GUI来为我们团队中的一些设计师和艺术家执行一些开发人员工具。

我在Ant外部网站上发现了一对,但其中大部分用于创建ANT文件,而不仅仅是列出可用的公共目标。

http://ant.apache.org/external.html

4 个答案:

答案 0 :(得分:3)

ANT forms项目有一些任务可以让您生成可用于调用ANT目标的简单表单。

以下是三个按钮的示例:

<project default="menu">

    <property environment="env"/>

    <path id="runtime.cp">
        <pathelement location="${env.ANTFORM_HOME}/lib/antform.jar"/>
    </path>

    <target name="menu">        
        <taskdef name="antmenu" classname="com.sardak.antform.AntMenu" classpathref="runtime.cp"/>

        <antmenu image="${env.ANTFORM_HOME}/doc/images/logo-small.jpg" title="My simple form" stylesheet="${env.ANTFORM_HOME}/style.test">
            <label>A short label with a few explanatory words concerning the menu at hand.</label>
            <button label="Echo 1 target" target="echo1"/>
            <button label="Echo 2 target" target="echo2"/>
            <button label="Echo 3 target" target="echo3"/>            
        </antmenu>
    </target>

    <target name="echo1">
        <echo>DO SOMETHING</echo>
    </target>

    <target name="echo2">
        <echo>DO SOMETHING</echo>
    </target>

    <target name="echo3">
        <echo>DO SOMETHING</echo>
    </target>

</project>

答案 1 :(得分:1)

通常,Ant或Maven的大部分GUI都是IDE的一部分。我使用IntelliJ,它对Ant和Maven有很好的支持。列出我的所有目标,我很容易查看它们中的任何一个。

答案 2 :(得分:1)

Antelope是一款非常出色的独立GUI。

http://antelope.tigris.org/

答案 3 :(得分:1)

我总是很喜欢这个项目,它用xsl实现,不需要其他依赖项。

http://antprettybuild.sourceforge.net/