I tried to use the jar from v2.1 without success. As a work around, I call the $GLASSFISH_HOME/modules/admin-cli.jar from my ant script
[code]
<target name="deploy" description="Deploy the ear file to the App Server">
<java jar="${admin.cli.jar}" fork="true" spawn="false">
<arg line="deploy --force=true myapplication.ear"/>
</java>
</target>
[/code]
[Message sent by forum member 'oosthuizen' (andre.oosthuizen_at_thumbtribe.co.za)]
http://forums.java.net/jive/thread.jspa?messageID=377090