[osflash] Mac OSX and as2ant UnitTest task

Chris Allen mrchrisallen at gmail.com
Mon Mar 5 13:46:16 EST 2007


Hey Michael,

I fixed this Task to actually work with OSX a while ago, but Simon's
implementation of my changes somehow caused it not to work correctly.
I believe that I mentioned this on this mailing list a while back too.

I've attached a JAR file of my changes that DO work. This is currently
what we are working with at Scholastic and we haven't had any issues
with it. Use the following tag to use it within your build.xml file:

<taskdef name="unittest"
classname="org.as2lib.ant.UnitTestForMacAndPC"
classpath="jar/as2ant4MacAndPC.jar" />

*Notice that I changed the class name.

Simon, we should try to work together to get a version that will work
for everyone. Feel free to IM me to figure out the best way to do so.

-Chris


On 3/5/07, Michael <michael.forrest at gmail.com> wrote:
> There's some stuff in the history on this list about getting the UnitTest
> task to work on OSX - seems like it should work now, but unfortunately I'm
> having problems. These manifest as follows:
>
> No messages show up in the console after the swf is launched ( i.e. it stops
> at
>   [mtasc] Compiling 1 source file.
>   [mtasc] /Users/michaelforrest/workspac...
>   [unittest] open "/Users/michaelforrest/work...
>    [unittest] -
> ). When the swf is closed, the server doesn't get stopped,  and the
> [terminate] button has to be pressed in order to launch another unit test or
> I get " Error on starting server".
>
> However, when the server is supposedly running and I run netstat, I don't
> see any servers running on port 3212.
>
> I'm running the bundled version of Java (
>  java version "1.5.0_07"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
>  Java HotSpot(TM) Client VM (build 1.5.0_07-87, mixed mode, sharing)
> ).
> I've tried the trunk version of as2ant, as well as the jar from this email
> http://osflash.org/pipermail/osflash_osflash.org/2006-August/010528.html
>
> Any ideas?
> Cheers
> Michael
>
>
> _______________________________________________
> osflash mailing list
> osflash at osflash.org
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: as2ant4MacAndPC.jar
Type: application/octet-stream
Size: 5184 bytes
Desc: not available
Url : http://osflash.org/pipermail/osflash_osflash.org/attachments/20070305/668ea342/as2ant4MacAndPC.obj


More information about the osflash mailing list