Hey:
I have been using gas 3 generation with 3.4 Flex Mojos to this day
fine. Specifically ENUM generation via an enumTemplate clause like the
one included in the following flex mojos configuration:
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>${flex.mojos.version}</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<baseOutputDirectory>$
{project.build.directory}/generated-sources/flex-mojos
</baseOutputDirectory>
<outputDirectory>$
{project.build.sourceDirectory}</outputDirectory>
<outputEnumToBaseOutputDirectory>true</
outputEnumToBaseOutputDirectory>
<includeJavaClasses>
<includeClass>com.snip.dto.*</
includeClass>
<includeClass>com.snip.AddendumStatus</
includeClass>
<includeClass>com.snip.enums.ContractDurationEnum</includeClass>
</includeJavaClasses>
<entityTemplate>
<param>${basedir}/src/main/template/
entityBase.gsp</param>
<param>${basedir}/src/main/template/
entity.gsp</param>
</entityTemplate>
<beanTemplate>
<param>${basedir}/src/main/template/
beanBase.gsp</param>
<param>${basedir}/src/main/template/
bean.gsp</param>
</beanTemplate>
<interfaceTemplate>
<param>${basedir}/src/main/template/
interfaceBase.gsp</param>
<param>${basedir}/src/main/template/
interface.gsp</param>
</interfaceTemplate>
<enumTemplate>
<param>${basedir}/src/main/template/
enum.gsp</param>
</enumTemplate>
</configuration>
</execution>
</executions>
<configuration>
<configurationReport>true</configurationReport>
<debug>true</debug>
<locales>
<param>en_US</param>
</locales>
<sourcePaths>
<path>${basedir}/src/main/flex</path>
<path>${basedir}/src/main/resources</path>
<path>${basedir}/target/generated-sources/flex-
mojos/</path>
</sourcePaths>
</configuration>
</plugin>
</plugins>
I just upgraded to use some of the RIATest and FlexMonkey hooks in
3.6.1. However every time I generate the ENUMS for my previously
working code I end up with classes like public class AttachmentType
extends Enum {
Enum is org.granite.util.Enum
Was this intentional? If so what is the desired way forward?
What if I just want my old enumTemplate that was working just fine to
continue to be used in 3.6.1 - is that documented somewhere?
thanks in advance!
--
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
http://flexmojos.sonatype.org/