아래와 같이 build.xml에 proejct를 포함시키시면 됩니다.
<?xml version="1.0"?>
<project name="redeploy" default="redeploy-war" basedir=".">
<taskdef name="jmx" classname="org.jboss.ant.JMX">
<classpath>
<pathelement path="${jboss.home}/client/jbossjmx-ant.jar" />
<pathelement path="${jboss.home}/client/jbossall-client.jar" />
</classpath>
</taskdef>
<target name="redeploy-war">
<echo message="Redeploy : file:/${war.path}"/>
<jmx>
<invoke target="jboss.system:service=MainDeployer" operation="redeploy">
<parameter type="java.lang.String" arg="file:/${war.path}" />
</invoke>
</jmx>
</target>
</project>
<project name="redeploy" default="redeploy-war" basedir=".">
<taskdef name="jmx" classname="org.jboss.ant.JMX">
<classpath>
<pathelement path="${jboss.home}/client/jbossjmx-ant.jar" />
<pathelement path="${jboss.home}/client/jbossall-client.jar" />
</classpath>
</taskdef>
<target name="redeploy-war">
<echo message="Redeploy : file:/${war.path}"/>
<jmx>
<invoke target="jboss.system:service=MainDeployer" operation="redeploy">
<parameter type="java.lang.String" arg="file:/${war.path}" />
</invoke>
</jmx>
</target>
</project>
잘 되겠죠?





