I'm not familiar with eclipse. Can eclipse execute an ant script? If it's possible then you can try adding the GlassFish ant task "sun-appserv-deploy" as "taskdef" in your ant xml file.
Or you can switch from eclipse to NetBeans :-)
[Message sent by forum member 'janey' (janey)]
http://forums.java.net/jive/thread.jspa?messageID=245014