[antlr-interest] VS2008 Integration Example

Sam Harwell sharwell at pixelminegames.com
Tue Oct 14 13:25:01 PDT 2008


Delete doesn't properly handle ; delimited lists of files. :( Plus we check the generated .cs files into Perforce so it's good to have them around (in our case).

Sam

-----Original Message-----
From: Gavin Lambert [mailto:antlr at mirality.co.nz] 
Sent: Tuesday, October 14, 2008 3:23 PM
To: Sam Harwell; André van der Merwe; antlr-interest at antlr.org
Subject: RE: [antlr-interest] VS2008 Integration Example

At 05:28 15/10/2008, Sam Harwell wrote:
>Here's how you can get the Clean and Rebuild tasks working as 
>well. If you delete the .tokens files associated with each 
>grammar, then the grammar will get properly rebuilt:
>
><PropertyGroup>
> 
><CoreCleanDependsOn>$(CoreCleanDependsOn);CleanAntlrCode</CoreCleanDependsOn>
></PropertyGroup>
><Target Name="CleanAntlrCode">
>         <ItemGroup>
>                 <_CleanAntlrFileWrites 
> Include="@(Antlr3->'%(RelativeDir)%(Filename).tokens')" />
>         </ItemGroup>
>         <Message Importance="normal" Text="Antlr: Deleting 
> output files '@(_CleanAntlrFileWrites)'" />
>         <Delete Files="@(_CleanAntlrFileWrites)" />
></Target>

Wouldn't it be better to remove all the output files, not just the 
.tokens file?  You should be able to do that by using this line 
instead (though I haven't tested it):

<Delete Files="%(Antlr3.OutputFiles)" />



More information about the antlr-interest mailing list