Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache ANT Standalone GUI for easy execution of targets

Does anyone know of a GUI written for Apache ANT. We're looking into developing a GUI to execute some of our developer tools for some of the designers and artists on our team.

I found a couple on the Ant External website but most of them are used for creating ANT files not simply listing the public targets available.

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

like image 310
Dougnukem Avatar asked Nov 17 '10 22:11

Dougnukem


People also ask

How do I run a specific target in Ant?

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.

What is Apache Ant used for?

Apache Ant™ The main known usage of Ant is the build of Java applications. Ant supplies a number of built-in tasks allowing to compile, assemble, test and run Java applications. Ant can also be used effectively to build non Java applications, for instance C or C++ applications.

Is Apache Ant still used?

Apache Ant is well-established Developers have been using Apache Ant in Java development cycles longer than any other build tool. Apache Ant, which debuted in 2000, is the oldest, still widely used Java build tool.

What are targets in Ant?

An Ant target is a sequence of tasks to be executed to perform a part (or whole) of the build process. Ant targets are defined by the user of Ant. Thus, what tasks an Ant target contains depends on what the user of Ant is trying to do in the build script.


2 Answers

The ANT forms project has some tasks that enable you to generate simple forms that can be used to invoke ANT targets.

Here's an example with three buttons:

<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>
like image 109
Mark O'Connor Avatar answered Sep 30 '22 17:09

Mark O'Connor


Usually most of the GUI for Ant or Maven are part of the IDE. I use IntelliJ that has an excellent support for Ant and Maven. Lists all my goals and I easily view any of them.

like image 20
Amir Raminfar Avatar answered Sep 30 '22 18:09

Amir Raminfar