I know , it's again a new parameter but our project can't move currently to flexmojo4 / maven 3. we tried the "multi" pom approach but this was not working nice with developers IDE and is not really a "clean" solution.
i understand that once maven 3 / flexmojo 4 are more stable , we will move to flexmojo4 solution. but until then , we stay need to stay on flexmojo 3. so for us, this would be a 3.x solution only. the code impact is kept to minimal, basically all calls to project.getFinalName() are replace by a call to a new method getSwfFinalname() which will return getFinalName() or the configured swfName. so if not used , the build will be the same as currently. further the artifacts attached to the project have a "bit" longer name to prevent overwriting of files. luc On Jan 5, 1:55 am, Marvin Froeder <[email protected]> wrote: > Ow dear, one more parameter that may or may not affect the swf output > name.... that is one more thing fixed on flexmojos 4.... > > On Tue, Jan 4, 2011 at 9:12 AM, Luc Willems <[email protected]> wrote: > > > 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]<flex-mojos%[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/
