code> flag will cause it
  to print out the working version of CUP and halt.  This allows
  automated CUP version checking for Makefiles, install scripts and
  other applications which may require it.
</dd></dl>
<a name="ant"></a>
<h4>3.2 Integrating CUP into an <a href="http://ant.apache.org/">ANT</a>
script</h4>
<p>To use cup in an ANT script, You have to add the following task definition to
Your <tt>build.xml</tt> file:</p>
<pre>&lt;taskdef name="cup"
  classname="java_cup.anttask.CUPTask"
  classpathref