Hi Patrick, I've seen a similar thing to this with IntelliJ, apparently UI apps don't see PATH variables. The solution that works for me (it's probably doing the same thing) is to add an environment variable to OSX. The environment variables preferences pane makes this quite easy - http://www.apple.com/downloads/macosx/system_disk_utilities/environmentvariablepreferencepane.html. This is where I also up the memory allocated to Maven. You need to log out to pick up changes though.
Michael On 24 May 2011 17:27, Patrick Heinzelmann <[email protected]>wrote: > If you follow this guide > https://docs.sonatype.org/display/FLEXMOJOS/Running+unit+tests, > every works as expected, when running the flexunit tests from the > command: Flash Player will launched to run the tests. > > I've set the location by adding following line to ~/.profile: export > PATH=/Applications/Flash\ Player\ Debugger.app/Contents/MacOS:${PATH} > > But when I'm trying to run it from Eclipse using the m2e plugin, m2e > can't find the Flash Player. These happens, because Eclipse will not > orgin version of the PATH and not the extended of the .profile File. > > Finally, I found a simple solution for the problem, when you want to > running unit tests from m2e on a Mac. > > You have to add the Flash Player location as environment variable in > the launch configuration of the Maven Build (m2e) in Eclipse. > > Eclipse->Run->Run Configurations->Select a Maven Build (left column)- > >Environment->New > > Variable: PATH > Value: /Applications/Flash\ Player.app/Contents/MacOS (if the Flash > Player is located below "/Applications") > > And select the RadioButton: Append environment to native environment > > Done! Now, the m2e plugin can launch the Flash Player to run the > flexunit tests. > > Cheers > Patrick > > -- > 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/ > -- 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/
