Skip to content

Instantly share code, notes, and snippets.

@jsanda
Created June 13, 2012 02:06
Show Gist options
  • Save jsanda/2921362 to your computer and use it in GitHub Desktop.
Save jsanda/2921362 to your computer and use it in GitHub Desktop.
<project name="eap_deploy"
default="main"
xmlns:rhq="antlib:org.rhq.bundle">
<rhq:bundle name="My Test App"
version="1.0"
description="A sample bundle consisting of EAP 5 with a deployed webapp">
<rhq:deployment-unit name="eap5"
postinstallTarget="start-jboss">
<rhq:archive name="jboss-eap-5.0.0.GA.zip"/>
</rhq:deployment-unit>
</rhq:bundle>
<target name="main"/>
<target name="start-jboss">
<property name="eap.dir" value="${rhq.deploy.dir}/jboss-eap-5.0"/>
<chmod file="${eap.dir}/jboss-as/bin/run.sh" perm="+x"/>
<exec dir="${eap.dir}/jboss-as/bin"
executable="run.sh"
spawn="true"
resolveexecutable="true">
<arg line="-b 0.0.0.0"/>
</exec>
</target>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment