To configure specific classes for generation:
            <plugin>
                <groupId>org.sonatype.flexmojos</groupId>
                <artifactId>flexmojos-maven-plugin</artifactId>
                <extensions>true</extensions>
                ...
                <executions>
                    <execution>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                        <configuration>
                            ...
                            <excludeJavaClasses>

<javaClass>com.katasoft.shogun.**.*Exception</javaClass>

<javaClass>com.katasoft.shogun.application.Application</javaClass>
                            </excludeJavaClasses>
                            <generatorToUse>graniteds21</generatorToUse>
                            <includeJavaClasses>

<javaClass>com.katasoft.shogun.**Service</javaClass>

<javaClass>com.katasoft.shogun.application.*</javaClass>

<javaClass>com.katasoft.shogun.directory.*</javaClass>

<javaClass>com.katasoft.shogun.entity.PersistentEntity</javaClass>
                            </includeJavaClasses>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
Notice that FlexMojos supports wildcards, in similar style to ant. **
matches anything anywhere, * matches things at the same level. So
com.katasoft.shogun.**Service, for us, is matching (for example)
com.katasoft.shogun.application.ApplicationService,
com.katasoft.shogun.directory.DirectoryService, etc. We have many more
include/exclude entries in our pom.xml, but this should show you the basis
of what you need.

Hope this helps,
Bryan Turner

On Fri, Apr 29, 2011 at 11:21 AM, Eric B <[email protected]> wrote:

> On Fri, Apr 29, 2011 at 11:50 AM, Christofer Dutz <
> [email protected]> wrote:
>
>> My Favourite documentation is the code itself ... I sort of got used
>> to having a look at the code in order to configure stuff. Due to the
>> lackk of documentation. That's why I started documenting my stuff in
>> the first place (I sort of keept re-fugguring out stuff over and over
>> again)
>>
>>
> Hi  Chris,
>
> I'm having a lot of difficulty right now getting the specific classes I
> want generated.  I've downloaded the sources for the SimpleGeneratorMojo,
> and put my breakpoints in there, and I see the problem is related to the
> classes it is scanning over.  The method getDirectDependencies() is
> returning a list of jars but none of my comipled source code classes.
>  Consequently, any <includeClass> filters I put to match my classes are
> never matched, and classes do not get generated.
>
> How do you specify which path(s) to use as the source folders when
> generating the classes?  You have <includeClass> filters, but are those
> classes in a Jar file already, or are they part of your project?
>
> As I type this, I am wondering if perhaps I am potentially going about this
> backwards?  Do you know if this plugin can be used in my Java project to
> generate the AS sources from my Java classes, or must it be used in a Flex
> project to generate AS classes from a java jar file instead?
>
> Thanks so much!
>
> Eric
>
> --
> 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/
>

-- 
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/

Reply via email to