| <?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/db.sql.visualeditor" default="build" basedir="."> | |
| <description>Builds, tests, and runs the project org.netbeans.modules.db.sql.visualeditor.</description> | |
| <import file="../../nbbuild/templates/projectized.xml"/> | |
| <target name="clean" depends="projectized-common.clean"> | |
| <delete> | |
| <fileset dir="src/org/netbeans/modules/db/sql/visualeditor/parser"> | |
| <include name="*.java" /> | |
| </fileset> | |
| </delete> | |
| </target> | |
| <target name="sql"> | |
| <mkdir dir="build"/> | |
| <copy file="external/javacc-7.0.10.jar" tofile="build/javacc.jar"/> | |
| <javacc target="src/org/netbeans/modules/db/sql/visualeditor/parser/SQLParser.jj" | |
| javacchome="build"> | |
| </javacc> | |
| </target> | |
| <!-- Obsolete method for generating parser files; now use javacc command --> | |
| <!-- | |
| <target name="init-sql"> | |
| <uptodate property="sql.gen.done" | |
| targetfile="src/org/netbeans/modules/db/sql/visualeditor/parser/SQLParser.java" | |
| srcfile="src/org/netbeans/modules/db/sql/visualeditor/parser/SQLParser.jj"/> | |
| </target> | |
| <target name="sql" depends="init-sql" unless="sql.gen.done"> | |
| <java fork="true" classname="org.javacc.parser.Main" | |
| classpath="external/javacc-3.2.jar"> | |
| <arg value="-OUTPUT_DIRECTORY=src/org/netbeans/modules/db/sql/visualeditor/parser" /> | |
| <arg value="src/org/netbeans/modules/db/sql/visualeditor/parser/SQLParser.jj" /> | |
| </java> | |
| </target> | |
| --> | |
| <target name="compile" depends="sql,projectized-common.compile"/> | |
| </project> |