java_cup
public class AntTask extends Task
The option names are the same as on the command line. Options without parameters are booleans in Ant (-nosummary becomes nosummary="true")
Example build.xml file for Ant (assumes that java_cup classes are available in classpath):
<project name="cup" default="jar"> <taskdef classname="java_cup.AntTask" name="cup" /> <target name="compile" depends="cup"> <javac srcdir="." destdir="bin" target="1.1" classpath="." /> </target> <target name="cup"> <cup file="java_cup/parser.cup" dir="java_cup" nosummary="true" /> </target> <target name="jar" depends="compile"> <jar basedir="bin" includes="java_cup/**" jarfile="java_cup.jar" /> </target> </project>
Method Summary | |
---|---|
void | configure()
Configures cup accordings to the settings of this class
|
void | execute()
Run the Ant task. |
void | setCompact_red(boolean b) |
void | setDir(File destinationDir) |
void | setDump(boolean b) |
void | setDump_grammar(boolean b) |
void | setDump_states(boolean b) |
void | setDump_tables(boolean b) |
void | setExpect(int i) |
void | setFile(File file) |
void | setInterface(boolean symInterface) |
void | setNonterms(boolean b) |
void | setNopositions(boolean b) |
void | setNoscanner(boolean b) |
void | setNosummary(boolean b) |
void | setNowarn(boolean b) |
void | setPackage(String name) |
void | setParser(String name) |
void | setProgress(boolean b) |
void | setSymbols(String name) |
void | setTime(boolean b) |
Throws: FileNotFoundException if inputFile does not exist
Throws: BuildException if build fails