Hello Group,

i have an app which loads several modules. Each module is a pair of
maven projects, one with the AS3 classes I need to share among other
projects (SWC) and one with the module specific stuff (SWF). What I
would like to do is optimize the SWC projects and use them as RSLs.
However, it seems that the optimizer ignores the metadata in my
classes, even though I have declared everything in the POM:

            <plugin><!-- Flex (SWC and SWF) compilation -->
                <groupId>org.sonatype.flexmojos</groupId>
                <artifactId>flexmojos-maven-plugin</artifactId>
                <version>${flexmojos.version}</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>optimize</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                                        <keepAs3Metadatas>
                                                
<keepAs3Metadata>Metadata</keepAs3Metadata>
                                                
<keepAs3Metadata>Init</keepAs3Metadata>
                                                
<keepAs3Metadata>Inject</keepAs3Metadata>
                                                
<keepAs3Metadata>ManagedEvents</keepAs3Metadata>
                                                
<keepAs3Metadata>MessageHandler</keepAs3Metadata>
                                        </keepAs3Metadatas>
                </configuration>
            </plugin>

The plugin documentation for SWC-compilation mentions no exceptions to
the rule when using the optimizer, so I am wondering if this is
expected behavior or whether I am doing something wrong here. When I
get rid of the optimize option and declare my dependencies without
<scope>rsl</scope>, it works fine... with the optimizer and
appropriate dependency declarations the app loads, but the
functionality dependent on my metadata (Parsley specific) is gone. I
do not get any errors, but the events don't seem to get handled
properly and the only explanation I can think of is that the metadata
is missing in the optimized SWFs.

Thanks in advance,
Rade
-- 
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://blog.flex-mojos.info/

Reply via email to