I will try that, but just to confirm what you wrote below: I just tested with graniteDS 2.0.0.SP1 and FlexMojos 3.6-SNAPSHOT with the same results. I'll try your suggestion now.
On Feb 2, 2010, at 4:12 AM, wdrai wrote: > This is strange, generation of inner enums is supported since at least > GraniteDS 2.0, maybe even 1.2. > Can you try adding this in your maven build : > <include>com.test.entity.Person$Salutation</include> > > Or maybe extract the enum in the top level. > > William > > > On 2 fév, 02:49, Edward Yakop <edward.ya...@gmail.com> wrote: >> Hi, >> >> The main issue is flexmojos graniteds generator only works with >> graniteds version 2.0.x >> Until this issue is rectified, you're using the wrong version of >> graniteds generator. >> >> Regards, >> Edward Yakop >> >> >> >> On Tue, Feb 2, 2010 at 09:28, Robert Morse <rmo...@mdesignz.com> wrote: >>> Hello, >>> As I've mentioned before, I'm trying to convert the GraniteDS Seam examples >>> to use Maven and FlexMojos. I'm getting closer, but have a question. The >>> graniteds_tide_seam example in the 2.1.RC2 release has a very simple entity >>> model. The Person class has an enum Salutation. When built using >>> GraniteDS' Ant build, a Person$Salutation.as is produced. When I generate >>> using FlexMojos, it generates all of the entity classes correctly, but does >>> not produce the enum action script file. I'm assuming (I know) I have >>> something wrong in my swc pom, but it's not obvious to me. Any help would >>> be greatly appreciated. >>> The relevant portion of the examples Person.java class: >>> ===================== >>> @Entity >>> public class Person extends AbstractEntity { // , DocumentedEntity { >> >>> private static final long serialVersionUID = 1L; >>> public enum Salutation { >>> Mr, >>> Ms, >>> Dr >>> } >> >>> @Enumerated(EnumType.ORDINAL) >>> private Salutation salutation; >>> ===================== >>> The current swc pom: >>> <build> >>> <sourceDirectory>src/main/flex</sourceDirectory> >>> <testSourceDirectory>src/test/flex</testSourceDirectory> >>> <plugins> >>> <plugin> >>> <groupId>org.sonatype.flexmojos</groupId> >>> <artifactId>flexmojos-maven-plugin</artifactId> >>> <extensions>true</extensions> >>> <configuration> >>> <contextRoot>plus</contextRoot> >>> <targetPlayer>9.0.124</targetPlayer> >>> <allowSourcePathOverlap>true</allowSourcePathOverlap> >>> <showWarnings>true</showWarnings> >>> <linkReport>true</linkReport> >>> <debug>true</debug> >>> </configuration> >>> <executions> >>> <execution> >>> <goals> >>> <goal>generate</goal> >>> </goals> >>> <configuration> >>> <generatorToUse>graniteds2</generatorToUse> >> >>> <baseOutputDirectory>${project.build.directory}/generated-sources</baseOutp >>> utDirectory> >> >>> <outputDirectory>${project.build.directory}/generated-sources</outputDirect >>> ory> >> >>> <outputEnumToBaseOutputDirectory>true</outputEnumToBaseOutputDirectory> >>> <useTideEntityTemplate>true</useTideEntityTemplate> >>> <includeJavaClasses> >>> <include>com.test.entity.AbstractEntity</include> >>> <include>com.test.entity.Address</include> >>> <include>com.test.entity.Contact</include> >>> <include>com.test.entity.Person</include> >>> </includeJavaClasses> >>> <warnings> >>> <arrayTostringChanges>true</arrayTostringChanges> >> >>> <assignmentWithinConditional>false</assignmentWithinConditional> >>> </warnings> >>> </configuration> >>> </execution> >>> </executions> >> >>> </plugin> >> >>> </plugins> >>> </build> >> >>> The human mind is an iterative processor, it never does anything right the >>> first time. What it does well is to make improvements on every iteration >>> (deMarco) >> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "Flex Mojos" group. >>> To post to this group, send email to flex-mojos@googlegroups.com >>> To unsubscribe from this group, send email to >>> flex-mojos+unsubscr...@googlegroups.com >>> For more options, visit this group at >>> http://groups.google.com/group/flex-mojos?hl=en?hl=en >> >>> http://flexmojos.sonatype.org/ > > -- > You received this message because you are subscribed to the Google > Groups "Flex Mojos" group. > To post to this group, send email to flex-mojos@googlegroups.com > To unsubscribe from this group, send email to > flex-mojos+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/flex-mojos?hl=en?hl=en > > http://flexmojos.sonatype.org/ The human mind is an iterative processor, it never does anything right the first time. What it does well is to make improvements on every iteration (deMarco) -- You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to flex-mojos@googlegroups.com To unsubscribe from this group, send email to flex-mojos+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/flex-mojos?hl=en?hl=en http://flexmojos.sonatype.org/