Inside as2ant_1.0_alpha.zip I find as2ant.jar and some docs, but nothing about how to install this into Eclipse. I assume I just need to copy the .jar file somewhere, but don't know where.
Clues?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
installation is not required. You just need to create a build.xml in your project and add the task definitions you need, for example:
<taskdef name="mtasc" classname="org.as2lib.ant.Mtasc" classpath="ant/src"/>
<taskdef name="swf" classname="org.as2lib.ant.Swf" classpath="ant/src"/>
The path is in this case relative to the project's directory and ant/src points to the directory that contains the binary source. You can also specify a jar there.
You can then right-click your build.xml and select "Run as" / "Ant build", to execute the default target of your build.xml.
You may also choose the green array with the tool-box beneath the menu bar and add a new ant build. You can then specify there which targets to execute etc.
You may also declare the mtasc, swf and swfmill tasks as global tasks in Eclipse so that you do not have to add a taskdef in every build.xml. Go to Window / Preferences / Ant / Runtime / Classpath and add the jar there, then go to Tasks to add the tasks.
The documentation contains only the taskdef thingy, because everything else is Eclipse specific, and everything works also in Eclipse with just a simple taskdef; all the other configurations (I explained above) can be done just for convenience and are all explained in the Exlipse help.
Greetings,
Simon
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've just downloaded As2ant from http://www.as2lib.org/news/as2ant_10_alpha
Inside as2ant_1.0_alpha.zip I find as2ant.jar and some docs, but nothing about how to install this into Eclipse. I assume I just need to copy the .jar file somewhere, but don't know where.
Clues?
Hi Todd,
installation is not required. You just need to create a build.xml in your project and add the task definitions you need, for example:
<taskdef name="mtasc" classname="org.as2lib.ant.Mtasc" classpath="ant/src"/>
<taskdef name="swf" classname="org.as2lib.ant.Swf" classpath="ant/src"/>
The path is in this case relative to the project's directory and ant/src points to the directory that contains the binary source. You can also specify a jar there.
You can then right-click your build.xml and select "Run as" / "Ant build", to execute the default target of your build.xml.
You may also choose the green array with the tool-box beneath the menu bar and add a new ant build. You can then specify there which targets to execute etc.
You may also declare the mtasc, swf and swfmill tasks as global tasks in Eclipse so that you do not have to add a taskdef in every build.xml. Go to Window / Preferences / Ant / Runtime / Classpath and add the jar there, then go to Tasks to add the tasks.
The documentation contains only the taskdef thingy, because everything else is Eclipse specific, and everything works also in Eclipse with just a simple taskdef; all the other configurations (I explained above) can be done just for convenience and are all explained in the Exlipse help.
Greetings,
Simon