[antlr-interest] nant build error

Micheal J open.zone at virgin.net
Mon Jun 19 09:28:46 PDT 2006


Try ANTLR 2.7.6. I don't remember any build problems for 2.7.5 but, perhaps
Nant has changed and that buildfile is no longer valid for the current Nant
releases.

ANTLR 2.7.6 builds fne with Nant 0.85 rc3 and later. Not sure about nighly
build though.


Micheal

-----------------------
The best way to contact me is via the list/forum. My time is very limited.


> Hi everyone,
> 
> I want to generate c# source file. I use a tutorial here
> (http://www.antlr.org/doc/csharp-runtime.html)
> 
> In the "antlr-2.7.5/lib/csharp" directory, I execute "nant 
> build" command line to generate the missing files : 
> -JavaLexer.cs -JavaRecognizer.cs -JavaTokenTypes.cs 
> -JavaTreeParser.cs -JavaTreeParserTokenTypes.cs.
> 
> But the build failed, I copy past the message under.
> 
> Is anyone have a solution ?
> 
> Cheers
> 
> dotnet
> 
> -------------------------------
> NAnt 0.85 (Build 0.85.2337.0; nightly; 26/05/2006)
> Copyright (C) 2001-2006 Gerry Shaw
> http://nant.sourceforge.net
> 
> Buildfile: 
> file:///D:/work/Antlr/antlr-2.7.5/lib/csharp/antlr.runtime.bui
ld
Target framework: Microsoft .NET Framework 2.0
Target(s) specified: build


init:

   [tstamp] lundi 12 juin 2006 17:00:12.
   [script] Scanning assembly "dkeotbif" for extensions.
     [echo] ------------------- antlr.runtime 2.7.5 [2005] ----------------

build:

     [echo] Building antlr.runtime-2.7.5 (debug)

init:

   [tstamp] lundi 12 juin 2006 17:00:13.
   [script] Scanning assembly "a_vuafwx" for extensions.
     [echo] ------------------- antlr.runtime 2.7.5 [2005] ----------------

compile:

D:\work\Antlr\antlr-2.7.5\lib\csharp\antlr.runtime.build(118,6):
Element <includes... /> for <assemblyfileset... /> is deprecated. Use
<include> element instead.

BUILD FAILED - 0 non-fatal error(s), 1 warning(s)

D:\work\Antlr\antlr-2.7.5\lib\csharp\antlr.runtime.build(119,15):
Unexpected attribute "match" on element <includes>.

Total time: 0.6 seconds.



More information about the antlr-interest mailing list