copy-flex-resource does copy swf into war. Also include resource-bundles, rsls and if I'm not mistaken even modules (unsure about this last one).
Anyway, it doesn't copy your swf src/main/resources to your war.... honestly if the resource is embed on the swf it doesn't need to be on the war. If it is not, it doesn't need to be on the swf. On Tue, Feb 16, 2010 at 2:40 PM, Rick R <[email protected]> wrote: > I've been trying to do my research on this but I'm really confused, > especially because when I run the modular application archetype as described > here http://flexmojos.sonatype.org/getting-started.html it 'seems' to > conflict with the mojo docs. > > To start with, what I ultimately want is the best practice in how people > deal with having a swf project and web-app project where the asset resources > are in the swf project ( css/images etc) and I only maintain them there. > Obviously at some point the webapp module needs them as well, so how is this > best accomplished from a developer perspective? I assume both projects are > somehow available on the developers machine and when he works in swf and > runs the maven build the files should be copied to the web project (at which > point the dev needs to also do a vcs checkin in the webproject so if someone > else checks out the web project it will build with the correct resources?) > > But this brings me to my next question, the archetype created has a task > copy-flex-resources task in the WEB module (not the swf module.) Yet the > docs here on the copy-flex-reosurces task > http://sites.sonatype.org/flexmojos/flexmojos-maven-plugin/copy-flex-resources-mojo.htmlseem > to imply that it wouldn't really make sense in the webmodule and > probably the task belongs in the swf module? In fact the docs mention there > is a required 'webappDirectory' property that is needed, yet the archetype > doesn't even create the required property. It looks the copy-flex-resources > in the web module is only for pulling the swf in and uses the example shown > here https://docs.sonatype.org/display/FLEXMOJOS/Copy+Flex+Resources > > So I'm lost here, this > https://docs.sonatype.org/display/FLEXMOJOS/Copy+Flex+Resources seems like > a different task than > http://sites.sonatype.org/flexmojos/flexmojos-maven-plugin/copy-flex-resources-mojo.html? > > Ultimately all I care about is what's the common practice in a multi-module > setup for dealing with resources/assets? I assume they stay defined in the > swf project under resources (and they're working fine there in flexbuilder) > but not sure how the integration works with handling the webapp side of > things which needs those same assets in it? > > -- > 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?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 [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://flexmojos.sonatype.org/
