mulesoft/mule-devkit — Issue #78: Support multiple connectors in same build
Author: dandiep
Created: 2012-01-18 02:12:22+00:00
State: open

Related to #73, devkit explodes when you have multiple connectors in the same build:

An annotation processor threw an uncaught exception.
Consult the following stack trace for details.
java.lang.IllegalArgumentException: trying to create the same field twice: LOGGER
at org.mule.devkit.model.code.DefinedClass.field(DefinedClass.java:433)
at org.mule.devkit.model.code.DefinedClass.field(DefinedClass.java:409)
at org.mule.devkit.model.code.builders.FieldBuilder.build(FieldBuilder.java:161)
at org.mule.devkit.model.code.builders.FieldBuilder.newLoggerField(FieldBuilder.java:51)
at org.mule.devkit.generation.callback.DefaultHttpCallbackGenerator.generateFields(DefaultHttpCallbackGenerator.java:120)
at org.mule.devkit.generation.callback.DefaultHttpCallbackGenerator.doGenerate(DefaultHttpCallbackGenerator.java:101)
at org.mule.devkit.generation.AbstractGenerator.generate(AbstractGenerator.java:35)
at org.mule.devkit.apt.AbstractAnnotationProcessor.process(AbstractAnnotationProcessor.java:82)

See https://github.com/mulesoft/google-connector to reproduce