| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| http://www.apache.org/licenses/LICENSE-2.0 |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| <!-- 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="ide/languages.env" default="build" basedir="."> |
| <description>Builds, tests, and runs the project org.netbeans.modules.languages.env</description> |
| <import file="../../nbbuild/templates/projectized.xml"/> |
| <target name="build-init" description="Regenerate the ANTLRv4 parser" depends="projectized.build-init" extensionOf="-pre-compile"> |
| <path id="antlr4.tool"> |
| <fileset dir="../../ide/libs.antlr4.runtime/external" includes="*.jar"/> |
| <fileset dir="../../ide/libs.antlr3.runtime/external" includes="antlr-runtime-*.jar"/> |
| </path> |
| <!--coloring--> |
| <property name="grammar.coloring.outdir" location="${src.dir}/org/netbeans/modules/languages/env/grammar/antlr4/coloring"/> |
| <java classname="org.antlr.v4.Tool" classpathref="antlr4.tool" fork="true" dir="${grammar.coloring.outdir}" failonerror="true"> |
| <arg value="-o"/> |
| <arg value="${grammar.coloring.outdir}"/> |
| <arg value="EnvAntlrColoringLexer.g4"/> |
| </java> |
| |
| <delete dir="${grammar.coloring.outdir}" includes="*.tokens"/> |
| <delete dir="${grammar.coloring.outdir}" includes="*.interp"/> |
| |
| <!--parser--> |
| <property name="grammar.parser.outdir" location="${src.dir}/org/netbeans/modules/languages/env/grammar/antlr4/parser"/> |
| <java classname="org.antlr.v4.Tool" classpathref="antlr4.tool" fork="true" dir="${grammar.parser.outdir}" failonerror="true"> |
| <arg value="-o"/> |
| <arg value="${grammar.parser.outdir}"/> |
| <arg value="EnvAntlrLexer.g4"/> |
| <arg value="EnvAntlrParser.g4"/> |
| </java> |
| |
| <delete dir="${grammar.parser.outdir}" includes="*.tokens"/> |
| <delete dir="${grammar.parser.outdir}" includes="*.interp"/> |
| </target> |
| </project> |