Hi Clement,
Real cool of you to share!
I'll have a play with it this weekend and will post some comments.
Thanks,
/Johan
On 10/27/05, Clement ARNOUX <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I propose you a small contribution : an Ant task that you can use to
> compile with asc, the actionscript3 compiler provided with flex
> builder 2 alpha
>
> here is an exemple
>
> <?xml version="1.0"?>
> <project name="AProject" default="MyTask">
> <description>
> A build using as3compile
> </description>
> <property file="build.properties"/>
> <target name="MyTask" description="test">
> <taskdef name="as3Compile" classname="org.aggelos.ant.CompileAS3"
> classpath="${antas3.dir}/antas3.jar;${framework.dir}/lib/asc.jar"/>
> <as3Compile file="${basedir}/HelloWorld.as"
> files="${deps}"
> globaldir="${framework.dir}/frameworks"
> main="HelloWorld" width="400" height="300"
> framerate="24" />
> </target>
> </project>
>
> with the following build.properties
>
> framework.dir=C:/Program Files/macromedia/flex Builder 2 Alpha 1/Flex
> Framework 2 Alpha 1
> antas3.dir=a path to antas3.jar
> deps=${basedir}/org/aggelos/smtg/ClassA.as;${basedir}/org/aggelos/smtg/ClassB.as
>
> The parameters are I hope quite self explainatory, but don't hesitate
> to ask questions.
> The jar file is for the time being here :
> http://www.aggelos.org/sources/antas3.jar
>
> and you can improve it, the source java file is here :
> http://www.aggelos.org/sources/CompileAS3.java
>
> Please test it, report me some bugs and a wishlist :p
>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org