-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.xml
More file actions
65 lines (60 loc) · 3.39 KB
/
Copy pathbuild.xml
File metadata and controls
65 lines (60 loc) · 3.39 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See harness/README in the NetBeans platform -->
<!-- for some information on what you could do (e.g. targets to override). -->
<!-- If you delete this file and reopen the project it will be recreated. -->
<project name="php.blade" default="netbeans" basedir="." xmlns:artifact="antlib:org.apache.maven.artifact.ant">
<description>Builds, tests, and runs the project php.blade.</description>
<import file="nbproject/build-impl.xml"/>
<target name="generate-antlr-parser" description="Regenerate the ANTLRv4 parser" depends="init">
<property name="v10.outdir" location="${src.dir}/org/netbeans/modules/php/blade/syntax/antlr4/v10"/>
<path id="antlr4.tool">
<fileset dir="../../Projects/netbeans/ide/libs.antlr4.runtime/external" includes="*.jar"/>
<fileset dir="../../Projects/netbeans/ide/libs.antlr3.runtime/external" includes="antlr-runtime-*.jar"/>
</path>
<!--coloring-->
<java classname="org.antlr.v4.Tool" classpathref="antlr4.tool" fork="true" dir="${v10.outdir}">
<arg value="-o"/>
<arg value="${v10.outdir}"/>
<arg value="BladeAntlrColoringLexer.g4"/>
</java>
<!--ide parser-->
<java classname="org.antlr.v4.Tool" classpathref="antlr4.tool" fork="true" dir="${v10.outdir}">
<arg value="-o"/>
<arg value="${v10.outdir}"/>
<arg value="BladeAntlrLexer.g4"/>
<arg value="BladeAntlrParser.g4"/>
</java>
<!--formatter-->
<property name="formatter.outdir" location="${src.dir}/org/netbeans/modules/php/blade/syntax/antlr4/formatter"/>
<java classname="org.antlr.v4.Tool" classpathref="antlr4.tool" fork="true" dir="${formatter.outdir}">
<arg value="-o"/>
<arg value="${formatter.outdir}"/>
<arg value="BladeAntlrFormatterLexer.g4"/>
<arg value="BladeAntlrFormatterParser.g4"/>
</java>
<!--php-->
<property name="php.outdir" location="${src.dir}/org/netbeans/modules/php/blade/syntax/antlr4/php"/>
<java classname="org.antlr.v4.Tool" classpathref="antlr4.tool" fork="true" dir="${php.outdir}">
<arg value="-o"/>
<arg value="${php.outdir}"/>
<arg value="BladePhpAntlrLexer.g4"/>
<arg value="BladePhpAntlrParser.g4"/>
</java>
<!--html-->
<property name="html_components.outdir" location="${src.dir}/org/netbeans/modules/php/blade/syntax/antlr4/html_components"/>
<java classname="org.antlr.v4.Tool" classpathref="antlr4.tool" fork="true" dir="${html_components.outdir}">
<arg value="-o"/>
<arg value="${html_components.outdir}"/>
<arg value="BladeHtmlAntlrLexer.g4"/>
<arg value="BladeHtmlAntlrParser.g4"/>
</java>
<delete dir="${v10.outdir}" includes="*.tokens"/>
<delete dir="${v10.outdir}" includes="*.interp"/>
<delete dir="${formatter.outdir}" includes="*.tokens"/>
<delete dir="${formatter.outdir}" includes="*.interp"/>
<delete dir="${php.outdir}" includes="*.tokens"/>
<delete dir="${php.outdir}" includes="*.interp"/>
<delete dir="${html_components.outdir}" includes="*.tokens"/>
<delete dir="${html_components.outdir}" includes="*.interp"/>
</target>
</project>