JavaCompilerCore/tools/AntParserBuilderWindows.xml
2014-09-08 15:12:47 +02:00

46 lines
1.5 KiB
XML
Executable File

<?xml version="1.0" encoding="UTF-8"?>
<project name="JavaCompiler.buildParser" default="JavaParser" basedir=".">
<property name="ParserSrcDir" value="./../src/de/dhbwstuttgart/parser/"/>
<target name ="JavaParser" depends="JavaLexer" description="Create the file JavaParser.java">
<!-- Diese Buildfile wird ausgeführt, auch unter linux... -->
<exec executable="${basedir}/RunJay.sh" failonerror="true"/>
<!--
<echo message="Hallo Welt: ${ParserSrcDir}JavaParser.jay"/>
<exec executable="ipconfig" failonerror="true">
<arg value="/all"/>
</exec>
-->
<!--
<exec executable="${basedir}/jay.cygwin32" dir="${ParserSrcDir}" failonerror="true">
<arg value="-v ${ParserSrcDir}JavaParser.jay &lt;skeleton&gt; ${ParserSrcDir}JavaParser.java"/>
<arg value="-v"/>
<arg value="${ParserSrcDir}JavaParser.jay"/>
<arg value="&lt;"/>
<arg value="skeleton"/>
<arg value="&gt;"/>
<arg value="${ParserSrcDir}JavaParser.java"/>
</exec>
-->
</target>
<target name ="JavaLexer" depends="Lexer" description="Move the file JavaParser.lex.java to JavaParser.java">
<move file="${ParserSrcDir}JavaLexer.lex.java" tofile="${ParserSrcDir}JavaLexer.java" failonerror="true"/>
</target>
<target name ="Lexer" description="Create the file JavaLexer.lex.java">
<java classname="JLex.Main"
classpath="${basedir}/JLex_neu.jar"
fork="true"
failonerror="true">
<arg value="${ParserSrcDir}JavaLexer.lex"/>
</java>
</target>
</project>