When using the generate mojo I give it custom Enum templates like
this:
<templates>
<enum-template>${basedir}/src/main/groovy/enum.gsp</enum-template>
</templates>
This worked in earlier versions but the enum-template breaks in 3.6-
SNAPSHOT.
Problem is line 90 of GranteDsGenerator: String templateUri =
getStringIndex0( enumTemplate );
This line looks up "base-enum-template" and GraniteDS doesn't use base
templates for Enums.
I could change my config from "enum-template" to "base-enum-template"
which should work. This seems confusing to me however since all other
"base-*" templates output to /target/generated-sources/flexmojos where
as non-base templates output to /src/main/flex. Since the Enum
template outputs to /src/main/flex I consider it a non-base template.
To figure out what the problem was I had to fire up the debugger.
Maybe other will find it equally confusing?
If others agree that the above configuration should work and that
using base-enum-template is confusing then changing line 90 to "String
templateUri = getStringIndex1( enumTemplate );" should fix the
problem.
Cheers,
Lance
--
You received this message because you are subscribed to the Google
Groups "Flex Mojos" 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/flex-mojos?hl=en?hl=en
http://flexmojos.sonatype.org/