Limit generator invocation count

2010-05-26 Thread Matt
Hi, I've written a custom generator, which functionally works fine. The only slightly nagging point is that the generator generates the same source code for all permutations, but still gets invoked once per permutation (which means quite a few times for an app with i18n...). This increases build

Re: Limit generator invocation count

2010-05-26 Thread Olivier Monaco
Matt, You generator is called for each permutation but it may not generate the same code each time. You generator must include the following code: PrintWriter printer = context.tryCreate(logger, packageName, className); if (printer != null) { // Create a