Great stuff...thanks....will report back on how it goes for me...

On Aug 6, 12:55 am, Michael Bushe <[email protected]> wrote:
> I'm a big fan of having a developer pull down one thing and just build and
> run, no matter the platform.  I have a build that works on Windows and
> Linux that uses Maven+jboss-ear+graniteds-war+multiple-flex-modules.
>
> On the of tricks I used to get the flashplayer working is to install each
> version in my Nexus repo.  I'm not sure if it's legal to make it available
> in a public repo (other than Adobe's and since they build in ant, we can't
> expect them to help us), but using a Nexus repo is a good idea anyway.
>
> In order to use it on multiple platforms, I add a .so extension to the
> linux extension to separate it from the windows exe and let me do the
> following:
>
>     <properties>
>         <flashPlayerMajorVersion>10</flashPlayerMajorVersion>
>         <flashPlayerVersion>10.1.53.64</flashPlayerVersion>
>         <flashPlayerClassifier>debug</flashPlayerClassifier>
>         <flashPlayer.command>
>           
>  ${settings.localRepository}/com/adobe/flash/player/${flashPlayerVersion}/p
> layer-${flashPlayerVersion}-${flashPlayerClassifier}.${osExecType}
>         </flashPlayer.command>
>     </properties>
> ...
>
> <plugin>
>                 <groupId>org.sonatype.flexmojos</groupId>
>                 <artifactId>flexmojos-maven-plugin</artifactId>
>                 <version>${flexmojos.version}</version>
>                 <extensions>true</extensions>
>                 <configuration>
>
>                    
>                     <testRunner>
>                         <launcher>
>                           
>  <flashplayerCommand>${flashPlayer.command}</flashplayerCommand>
>                         </launcher>
>                     </testRunner>
>
> ...
>
> I determine the osExecType by using maven profiles:
> <profile>
>             <id>win</id>
>             <activation>
>                 <activeByDefault>false</activeByDefault>
>                 <os>
>                     <family>Windows</family>
>                 </os>
>             </activation>
>             <properties>
>                 <osExecType>exe</osExecType>
>             </properties>
>         </profile>
>         <profile>
>             <id>linux</id>
>             <activation>
>                 <activeByDefault>false</activeByDefault>
>                 <os>
>                     <family>Linux</family>
>                 </os>
>             </activation>
>             <properties>
>                 <osExecType>so</osExecType>
>             </properties>
>         </profile>
>
> You'll also need to run an ant chmod on the .so so it's executable on
> Linux.  It's a lot of steps, but it works.
>
> Michael Bushe
> UI Architectwww.MindfulSoftware.com
> [email protected]
> [email protected]
>
> On 8/4/10 11:10 PM, "David Vree" <[email protected]> wrote:
>
> >I appreciate the voice of experience here.  I'll investigate a little
> >further and report back here.  But for sure, I am not confident it
> >will "just work"...or even work well.
>
> >Come to think of it, is it important to ensure all the developers are
> >using the same version of the player? Same version of SDK for
> >sure...but player...not so sure it matters.
>
> >On Aug 4, 9:50 pm, Marvin Froeder <[email protected]> wrote:
> >> In my opinion this is a pre-requisite.  You NEED flashplayer period.
> >> It is like having JVM to run java tests or having android things to run
> >> android tests or having browser installed to run selenium tests...
>
> >> Is what you are proposing possible? I believe so.  Does it worth? I
> >>don't
> >> think so.  You will probably will end with a over complicated pom and
> >>with
> >> some "hard coded" configurations.
> >> But that is only my opinion (and I can be severely wrong), I never tried
> >> that, but managing system applications using maven repository seems
> >>abusive
> >> to me.
>
> >> Anyway, good luck =D
>
> >> VELO
>
> >> On Wed, Aug 4, 2010 at 10:38 PM, David Vree <[email protected]>
> >>wrote:
> >> > Our project has gone through a lot of trouble to maintain at least one
> >> > 100% portable build profile in Maven.  In this way, new developers or
> >> > outside consultants can build & test our project without any set up
> >> > other than installing Java and Maven.  We are now adding a Flex UI to
> >> > the system along with FlexUnit for unit testing.
>
> >> > However, the FlexUnit stuff requires a FlashPlayer to run.   Is there
> >> > anyway to stick the FlashPlayer in a Maven repository and download it
> >> > as part of the build so all the developers have the same version in
> >> > the same place and we can keep one 100% portable build profile?
>
> >> > --
> >> > 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%2bunsubscr...@googlegr
> >>oups.com>
> >> > 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/
>
>
>
>  parentpom.xml
> 7KViewDownload

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

Reply via email to