It looks like the HTM Wrapper plugin may help support what I want.
https://docs.sonatype.org/display/FLEXMOJOS/Html+Wrapper+Mojo

The trouble is the wrapper when used in my SWF project only seems to wrap a
single SWF and not the 2 *.mxml files in my project (main.mxml, and
battle.mxml). Also the output is something like
project-name-1.0-SNAPSHOT.html I'd rather it be something like index.html or
main.html or battle.html.

It does appear that you can create templates in a pom.xml for your WAR
project that includes the SWF artifacts (it still looks like it only
includes one artifact unless there's a way to specify both SWF output
artifacts and seperately filter them main.jsp and battle.jsp for example.)
https://docs.sonatype.org/display/FLEXMOJOS/Html+Wrapper+Mojo#HtmlWrapperMojo-war



On Mon, Oct 5, 2009 at 11:10 PM, Doug Daniels <[email protected]>wrote:

>
> I'm working in a Maven Java environment, moving a client project from
> Flash (with checked in *.swf) to a Flex project that will be built
> from source through Flexmojos (which by the way is an awesome
> project).
>
> I'm wondering how to resolve developers who are using Flexbuilder
> whose build produces SWF's that look like the following.
>
> For example we have 2 MXML's a main.mxml and a battle.mxml, in
> Flexbuilder it's configured to output to bin-debug (we could configure
> that to maven default /target but that's not the issue). The output
> looks like the following:
> bin-debug/main.swf
> bin-debug/main.html
> bin-debug/battle.swf
>
> When I build with maven I get the following:
> target/project-name-1.0-SNAPSHOT-main.swf
>
> What's the best practice in flexmojos and Maven to get those 2 to
> match, because I'd like it so that we could run a JETTY web server
> project in the Eclipse workspace that during development could just
> map the directory to /target/ so that we could have HTML or JSP's that
> include the battle.swf and/or main.swf without having to build an
> entire WAR (see
> http://docs.codehaus.org/display/JETTY/Multiple+WebApp+Source+Directory).
>
> Even if we were to build a WAR which we will do for production I don't
> want to force FlexBuilder developers to run a mvn install to ensure
> that their SWFs are updated so they can run the web server.
>
> Should I modify the maven pom.xml to map the artifiact names to simple
> names like main.swf and battle.swf (also how do I go about doing that
> for a project that has multiple artifact outputs). Is there also a way
> with flexmojos to generate the HTML like Flexbuilder does during build?
> >
>

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