preserve original author on edit
[couchdbimport.git] / CouchProjects / Fabric / AntlrCodeGen.cmd
blobc62e86663fc6d47f341396619dd5dd2b445d5dd2
1 @ECHO OFF
3 REM
4 REM This launches Antlr to process the fabric grammar file (grammar.g) and generate
5 REM FabricLexer.cpp. FabricParser.cpp, etc..
6 REM
8 IF NOT defined ANTLRJAR SET ANTLRJAR=../bintools/antlr.jar
10 REM First nuke the old generated code. This is necessary because when Antlr
11 REM runs it doesn't update the modified time of the generated files if no changes
12 REM are applied to them.
13 REM This causes the build to unnecessarily rerun antlr because it never
14 REM knows the generated files are up to date.
16 del /Q GeneratedCode\*.*
17 call java -classpath "%ANTLRJAR%;%CLASSPATH%" antlr.Tool -o GeneratedCode Grammar.g 2>&1 | ..\bintools\unix_util_rewrite.exe
19 exit %errorlevel%
20 @ECHO ON