Sorry for getting in a bit late on the conversation, but here's my
2-cents...


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).

The best way right now to accomplish this would probably be to create two
separate WAR projects and two separate SWF projects (four projects
altogether) and inject/wrap each SWF into their respective WAR projects.
It's a bit of a pain, but it seems to be the best way to marry what you want
to do with the way maven is supposed to work.  You really don't want to
generate both swfs as part of the same project anyways.  Flex builder may
play nicely there, but maven's just not meant to work that way (i.e.
everything in a single project).  It's best to separate out common code to a
SWC file and share it between two SWF projects.  You can also check out
maven's module mechanisms which would help orchestrate everything
altogether.


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.
>
The html wrapper files can use whatever naming convention you choose.  If
you want the file to be called index.html, then call it that in the wrapper
template (either templateURI for a SWF project or the webapps directory for
a WAR) and it will remain the same in target.



> 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

You can provide arbitrary parameters in configuration beyond those
documented and they will be included when wrapping if that's what you mean.
See
http://sites.sonatype.org/flexmojos/flexmojos-maven-plugin/wrapper-mojo.htmlfor
other configuration options.


Actually, after re-reading the first message...  two swfs on one html page
is the main problem w/ the requirement?  Then the best bet w/ the tool as-is
would be probably be providing your own custom parameters (battle_width,
battle_height, etc) in the wrapper configuration.  I've never tried to do
this with flex builder, so I'm not certain of all of the behavior to
imitate.

Always an option too would be creating a nice little patch...


--David

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