Ant task for Haxe compiler

For those of us who use Ant to automate builds and other tedious tasks i’ve put together a task so you can now run the Haxe compiler from Ant.

It supports all of the relevant command line arguments, but if it doesnt do something you think would be useful please get in touch and i’ll see what I can do.

You can grab a zip here :

antHaxe.zip

Inside is everything you need, source, jar, samples and documentation.

MTASC and ANT : error running mtasc compiler

If you are trying to run MTASC from ant and are seeing the message ‘error running mtasc compiler’ this means that ant cant find the mtasc executable. There are 2 ways to remedy this.
The first is to add the folder with MTASC in to your system path. The second is to use the ‘mtasc’ attribute of Simon Wackers mtasc ant task to point it at mtasc.

If your mtasc executable is in D:devtools then you will need to define the task something like this :

<mtasc mtasc=”D:DevToolsmtasc.exe” …./>

I’ve written a more in depth guide to using ASDT and MTASC with ant over at osflash.org