Well, at work, my workstation is a pc (poop), but at home I have a Mac, so, 
given that it's running linux, should that be cool to run flexmojos 5?

Also, when you say update to flexmojos 5.x branch, you mean target that 
version of the plugin in the pom of the project? Er?

Thanks, I really appreciate your time.

Is anyone running unit tests on an AIR project via flexmojos?

On Wednesday, 26 September 2012 11:15:07 UTC-4, Christofer Dutz wrote:
>
> If yes ... try upgrading to the Flexmojos 5.x branch. I added some 
> more debug output there. Without it, it's allmost impossible to track 
> down the problems :-( 
>
> 2012/9/26 Christofer Dutz <[email protected] <javascript:>>: 
> > Are you using a Linux Machine? 
> > 
> > 2012/9/26 Asking Dumbquestions <[email protected] <javascript:>>: 
> >> Hello, 
> >> 
> >> Thanks for the reply! At present, there is no build machine, and so I'm 
> >> just running Maven commands on the project locally, and have not sent 
> the 
> >> project to be configured for continuous integration until I can figure 
> out 
> >> running unit tests via Maven for an AIR library. 
> >> 
> >> So, I blew away the target files by cleaning, so as to freshly create 
> >> new Testrunner 
> >> files, and now I receive: 
> >> 
> >> 
> >> [ERROR] Failed to execute goal 
> >> org.sonatype.flexmojos:flexmojos-maven-plugin:4.2-beta:test-run 
> >> (default-test-run) on project myProject: Unexpected return code 9 - 
> >> 
> C:\Users\myUser\workspace\as3\lib\myProject\target\test-classes\TestRunner.swf
>  
>
> >> 
> >> Exit code 9, according to Adobe, means: 
> >> 
> >> The main application content file is not a valid SWF or HTML file. 
> >> 
> >> This may have something to do with the fact that this is a library swc, 
> not 
> >> at AIR application? Is there some other configuration required for 
> this? 
> >> Any ideas 
> >> 
> >> Thanks, adq. 
> >> 
> >> 
> >> On Monday, 24 September 2012 11:31:34 UTC-4, Christofer Dutz wrote: 
> >>> 
> >>> The problem is probably related with the connection of the Testrunner 
> >>> and the Flexmojos build as the Flexmojos requests a free port number 
> >>> from the OS and compiles that into the testrunner. In the test 
> >>> execution phase the Flexmojos opens a port on that port number and 
> >>> waits for the client test runner to connect. I guess in the time 
> >>> between getting a free port number and opening the port some other 
> >>> process might be grabbing that port, causing the above failure. 
> >>> 
> >>> Is the build machine under heavy load? Is this failure reproduceable? 
> >>> 
> >>> Chris 
> >>> 
> >>> 2012/9/24 Asking Dumbquestions <[email protected]>: 
> >>> > 
> >>> > Hello Flexmojos group, 
> >>> > 
> >>> > I'm building an AIR library and cannot seem to run the unit test 
> goal 
> >>> > from 
> >>> > the command line using flexmojos.  I'm fairly comfortable with 
> flexmojos 
> >>> > and 
> >>> > have built numerous projects using the plugin, and in fact, loading 
> the 
> >>> > project into IntelliJ, I can test/develop no problem thru the IDE. 
>  When 
> >>> > I 
> >>> > try to pass thru the test goal from the command line, however, I'm 
> met 
> >>> > with 
> >>> > the following error. 
> >>> > 
> >>> > [ERROR] Failed to execute goal<br> 
> >>> > org.sonatype.flexmojos:flexmojos-maven-plugin:4.2-beta:test-run<br> 
> >>> > (default-test-run) on project myProject: Address already in use: 
> >>> > JVM_Bind 
> >>> > 
> >>> > I don't quite understand the error: it's not related to an IDE using 
> the 
> >>> > ADL 
> >>> > - I receive this error even if I've just booted do nothing else but 
> run 
> >>> > any 
> >>> > Maven command on the project. 
> >>> > 
> >>> > I do have the Flex SDK on my path so that the ADL is available, etc. 
>  Is 
> >>> > there another configuration I need to set up in the pom to enable 
> unit 
> >>> > testing via the AIR debugger?  Given this is a library, there's no 
> >>> > application.xml file, etc. 
> >>> > 
> >>> > I'd greatly appreciate any help! Thanks! 
> >>> > 
> >>> > 
> >>> > The pom.xml does specify using ADL under the build tag and includes 
> the 
> >>> > AIR 
> >>> > SDK as a dependency. 
> >>> > 
> >>> >     <build> 
> >>> >         <plugins> 
> >>> >             <plugin> 
> >>> >                 <groupId>org.sonatype.flexmojos</groupId> 
> >>> >                 <artifactId>flexmojos-maven-plugin</artifactId> 
> >>> >                 <version>${flexmojos.version}</version> 
> >>> >                 <extensions>true</extensions> 
> >>> > 
> >>> >                 <dependencies> 
> >>> >                     <dependency> 
> >>> >                         <groupId>com.adobe.flex</groupId> 
> >>> >                         <artifactId>compiler</artifactId> 
> >>> >                         <version>${flex.version}</version> 
> >>> >                         <type>pom</type> 
> >>> >                     </dependency> 
> >>> >                     <dependency> 
> >>> >                         <groupId>com.adobe.flex.compiler</groupId> 
> >>> >                         <artifactId>adt</artifactId> 
> >>> >                         <version>${flex.version}</version> 
> >>> >                         <scope>compile</scope> 
> >>> >                     </dependency> 
> >>> >                 </dependencies> 
> >>> >             </plugin> 
> >>> >         </plugins> 
> >>> >     </build> 
> >>> > 
> >>> > ... and of course, in dependencies I'm specifying the AIR SDK: 
> >>> > 
> >>> > <dependencies> 
> >>> >         <!-- Air SDK --> 
> >>> >         <dependency> 
> >>> >             <groupId>com.adobe.flex.framework</groupId> 
> >>> >             <artifactId>air-framework</artifactId> 
> >>> >             <version>${flex.version}</version> 
> >>> >             <type>pom</type> 
> >>> >         </dependency> 
> >>> > </dependencies> 
> >>> > 
> >>> > -- 
> >>> > 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]<javascript:> 
> >> To unsubscribe from this group, send email to 
> >> [email protected] <javascript:> 
> >> 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/

Reply via email to