Ok, I think I found out what the problem was. When I run flex tests, everything occurs exactly how you described, and it works (if I don't have the flashplayer:uexe artifact, it will go and execute Flash Player from the path.
But when I test air applications, which was what I was doing, the resolveAdlVm from AbstractMavenMojo does not return null, it returns [ '-runtime', <runtime path> ]; Because of this, when asVmLauncher tests if ( asvmCommand == null ) the check doesn't return false like it was supposed to, and flexmojos tries to run -runtime <runtime path> in the command line, resulting in an error. I'll fix the resolvedAdlVm to return null if it can't find the adl artifact, so that things will work. When I'm able than to run tests in headless mode, I'll make a pull request with this. Thanks, Rafael. On Thu, Oct 28, 2010 at 9:47 PM, Rafael Adson Barbosa Barros < [email protected]> wrote: > Ok, I'll check it out then. Probably I'm doing something wrong... > > Thanks for the help, > Rafael. > > > On Thu, Oct 28, 2010 at 9:42 PM, Marvin Froeder <[email protected]> wrote: > >> But it does that.... >> >> http://github.com/Flexmojos/flexmojos/blob/flexmojos-4.x/flexmojos-maven-plugin/src/main/java/org/sonatype/flexmojos/plugin/AbstractMavenMojo.java#L672 >> >> If it fails to resolve from local repo it just returns null, an that will >> fallback to system default.... >> >> >> VELO >> >> >> On Thu, Oct 28, 2010 at 9:31 PM, Rafael Adson Barbosa Barros < >> [email protected]> wrote: >> >>> In my tests, if it can't find it in the local repo, it just throws an >>> error, it doesn't look in the system path. >>> What I'm proposing is that it does that. >>> Maybe I'm overlooking something, but that happened to me. Feel free to >>> correct me if I'm wrong. >>> >>> Thanks, >>> Rafael. >>> >>> On Thu, Oct 28, 2010 at 4:18 PM, Marvin Froeder <[email protected]>wrote: >>> >>>> >>>> >>>> On Thu, Oct 28, 2010 at 4:12 PM, Rafael Adson >>>> <[email protected]>wrote: >>>> >>>>> My suggestion is to add a third option: if the user does not do that, >>>>> and flashplayer/adl is not installed in the local repository, but if >>>>> the plugin is able to find in the operating system path flashplayer/ >>>>> adl with the default name for that operating system, then flexmojos >>>>> would choose to run the one it finds. I'm aware that this can result >>>>> on unintended behaviour (if the user don't want to use an adl that he >>>>> has in the path but would rather download another from adobe for >>>>> whatever reason, for example), so I would like to hear what you think >>>>> about this. >>>>> >>>> >>>> Right now it has 3 steps to find adl/fp.... >>>> >>>> 1 - Did user explicit step adl/fp? If so, use it, otherwise: >>>> 2 - Does user has adl/fp installed on maven local repository? If so, use >>>> it, otherwise: >>>> 3 - Assume user has adl/fp on system path, which I can't check.... >>>> >>>> If you don't wanna flexmojos to use adl/fp from you local repo it makes >>>> more sense to me to not install it on the local repo.... am I missing >>>> something here? >>>> >>>> >>>> VELO >>>> >>>> -- >>>> 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]<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]<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/
