I think the idea is correct, but I would also check if there is something
we could do with the generator task to mark those directories as generated
sources that should be cleaned up (I could be totally wrong here)

On Thu, Aug 1, 2024 at 8:49 AM Jason Gerlowski <[email protected]>
wrote:

> +1 - that makes sense afaict.
>
> On Thu, Aug 1, 2024 at 8:31 AM Gus Heck <[email protected]> wrote:
> >
> > I keep having to waste time on errors like this:
> >
> > > Task :solr:benchmark:compileJava
> > error: Annotation generator had thrown the exception.
> > javax.annotation.processing.FilerException: Attempt to recreate a file
> for
> > type
> >
> org.apache.solr.bench.search.jmh_generated.QueryResponseWriters_query_jmhTest
> >         at
> >
> jdk.compiler/com.sun.tools.javac.processing.JavacFiler.checkNameAndExistence(JavacFiler.java:732)
> >         at
> >
> jdk.compiler/com.sun.tools.javac.processing.JavacFiler.createSourceOrClassFile(JavacFiler.java:498)
> >         at
> >
> jdk.compiler/com.sun.tools.javac.processing.JavacFiler.createSourceFile(JavacFiler.java:435)
> >         at
> >
> org.gradle.api.internal.tasks.compile.processing.IncrementalFiler.createSourceFile(IncrementalFiler.java:45)
> >         at
> >
> org.openjdk.jmh.generators.annotations.APGeneratorDestinaton.newClass(APGeneratorDestinaton.java:62)
> >         at
> >
> org.openjdk.jmh.generators.core.BenchmarkGenerator.generateClass(BenchmarkGenerator.java:448)
> >         at
> >
> org.openjdk.jmh.generators.core.BenchmarkGenerator.generate(BenchmarkGenerator.java:86)
> > ... etc
> >
> > Does anyone object to adding this to :solr:benchmark so that clean
> actually
> > cleans everything?
> >
> > clean {
> >   delete "${layout.projectDirectory}/src/java/generated"
> > }
> >
> >
> > --
> > http://www.needhamsoftware.com (work)
> > https://a.co/d/b2sZLD9 (my fantasy fiction book)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to