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:[EMAIL PROTECTED] Sent: Tuesday, October 14, 2008 3:23 PM To: Sam Harwell; André van der Merwe; [EMAIL PROTECTED] 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)" /> List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
