[antlr-interest] VS2008 Integration Example
Gavin Lambert
antlr at mirality.co.nz
Tue Oct 14 13:22:53 PDT 2008
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