ANT forms प्रोजेक्ट में कुछ कार्य हैं जो आपको सरल रूपों को उत्पन्न करने में सक्षम बनाता है जिनका उपयोग एएनटी लक्ष्यों को आह्वान करने के लिए किया जा सकता है।
यहाँ तीन बटन के साथ एक उदाहरण है:
<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>
स्रोत
2010-11-17 23:28:56
मैं इन उपयोगकर्ताओं के रूप में एक स्टैंडअलोन जीयूआई के लिए देख रहा हूँ एक पूर्ण विकसित आईडीई का उपयोग कर नहीं किया जाएगा लेकिन परियोजनाओं भंडार से समन्वयित के कुछ हिस्सों होगा और मुख्य रूप से डेटा निर्माण कर रहे हैं। – Dougnukem