-
-
Notifications
You must be signed in to change notification settings - Fork 146
/
buildLexer.xml
28 lines (26 loc) · 996 Bytes
/
buildLexer.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="AsciiDoc Lexer" default="asciidoc">
<property name="flex.jar.path" value="${idea.community.source.home}/tools/lexer/jflex-1.7.0-SNAPSHOT.jar"/>
<macrodef name="flex">
<attribute name="flexfile"/>
<attribute name="destdir"/>
<attribute name="skeleton" default="${idea.community.source.home}/tools/lexer/idea-flex.skeleton"/>
<sequential>
<java jar="${flex.jar.path}"
fork="true"
failonerror="true">
<jvmarg value="-Xmx512M"/>
<arg value="-skel"/>
<arg value="@{skeleton}"/>
<arg value="-d"/>
<arg value="@{destdir}"/>
<arg value="-legacydot"/>
<arg value="@{flexfile}"/>
</java>
</sequential>
</macrodef>
<target name="asciidoc">
<flex destdir="${basedir}/src/main/java/org/asciidoc/intellij/lexer"
flexfile="${basedir}/src/main/java/org/asciidoc/intellij/lexer/asciidoc.flex"/>
</target>
</project>