ビルドにデプロイし、o nにきれい:、
- エンタープライズアプリケーションプロジェクト(EAR)
- Webアプリケーションプロジェクト(WAR)
コピーし、プロジェクト内の 'のbuild.xml' ファイルには、このAntスクリプトをし、あなたのパスににプロパティjboss.dirを変更:
<project>
...
<property name="jboss.dir"
value="D:/Share/Sync/Dev/tools/j/jboss-as-7.1.1.Final/standalone/deployments"/>
<target depends="-post-clean" name="post-clean"/>
<target depends="-jboss-env" name="-post-clean">
<echo>Undeploying: ${jboss.projectFile}</echo>
<delete file="${jboss.dir}/${jboss.projectFile}"/>
<delete file="${jboss.dir}/${jboss.projectFile}.${jboss.projectState}"/>
</target>
<target depends="-post-dist" name="post-dist"/>
<target depends="-jboss-env" name="-post-dist">
<echo>Deploying: ${jboss.projectFile}</echo>
<copy file="${dist.dir}/${jboss.projectFile}" todir="${jboss.dir}"/>
<delete file="${jboss.dir}/${jboss.projectFile}.failed" />
</target>
<target name="-jboss-env" >
<condition property="jboss.projectFile" value="${war.name}">
<isset property="war.name"/>
</condition>
<condition property="jboss.projectFile" value="${jar.name}">
<isset property="jar.name"/>
</condition>
<available property="jboss.projectState"
file="${jboss.dir}/${jboss.projectFile}.undeployed"
value="undeployed"/>
<available property="jboss.projectState"
file="${jboss.dir}/${jboss.projectFile}.failed"
value="failed"/>
<available property="jboss.projectState"
file="${jboss.dir}/${jboss.projectFile}.deployed"
value="deployed"/>
</target>
</project>
も参照してくださいhttp://stackoverflow.com/questions/11573818/error-configuring-jboss-7-with-netbeans7 –