Gradle如何部署到Glassfish?
Ant example:
<target name="deploy"
description="deploys application to glassfish">
<exec failonerror="true" executable="cmd">
<arg value="/c" />
<arg value="asadmin --user ${gfUser} --passwordfile ${gfPassFile} --host ${host} deploy build/${war}" />
</exec>
</target>
是的,我可以使用asadmin
但是从Gradle这样做会更加Groovy。