Hi all
i'm currently working on a patch on Flex-Mojo 3.8 / trunk to allow building
of release and debug versions of all application and module SWF files
using a single POM.xml
We are currently testing this in our own application but like to push this
upstream for inclusion in 3.8 release.
the patch basic allows a fine control of finalName using a new parameter
swfName
which enables us to run the compiler 2 times (1 with and 1 without debug
active ) and have different output file names for application and module swf
files.
example pom :
<build>
<finalName>Studio</finalName>
<sourceDirectory>src/main/flex</sourceDirectory>
<outputDirectory>target/flex-compiler</outputDirectory>
<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>3.8-SNAPSHOT</version>
<extensions>true</extensions>
<configuration>
<configurationReport>true</configurationReport>
<moduleFiles>
<module>com/studio/module/authentication/Login.mxml</module>
<module>com/studio/module/select/Select.mxml</module>
<module>com/studio/module/external/Hello.mxml</module>
</moduleFiles>
<storepass/>
<optimize>true</optimize>
<debug>false</debug>
</configuration>
*<executions>
<execution>
<id>flexmojos-compile-debug-execution</id>
<phase>compile</phase>
<goals>
<goal>compile-swf</goal>
</goals>
<configuration>
<configurationReport>false</configurationReport>
<swfName>${build.finalName}-debug</swfName>
<optimize>false</optimize>
<debug>true</debug>
</configuration>
</execution>
</executions>*
</plugin>
</plugins>
</build>
the bold part is new and required to run the compiler a second time ,
producing Studio-debug.swf and related module files...
Marvin , can we provide a patch based on trunk for review, maybe a small
demo application to test it first ?
*Luc Willems*
Senior Software Engineer
*----------------------------------*
*LUMA INTERNATIONAL NV*
Lange Kievitstraat 118-120
2018 Antwerpen, Belgium
P: +32 (0) 3 369 20 11
F: +32 (0) 3 369 20 01
www.lumacentral.com
--
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/