Actualización del build de ant para que contemple el despliegue del eat

This commit is contained in:
Roberto Orden Erena
2019-12-14 17:35:26 +01:00
parent 2b1ab687ae
commit ad8cd521c6
2 changed files with 14 additions and 15 deletions

View File

@@ -4,7 +4,7 @@
<!-- definition of global property -->
<property environment="env" />
<property name="jboss.home" value="${env.JBOSS_HOME}" />
<property name="jboss.home" value="/opt/wildfly" />
<property name="source" value="." />
<property name="sourcesrc" value="${source}/src" />
<property name="build" value="${source}/build" />
@@ -27,7 +27,7 @@
</fileset>
</path>
<target name="all" depends="clean, init, ear" />
<target name="all" depends="clean, init, deployear" />
<target name="init" description="inicialitzacions is relevant: the structure created
copy files and directories there. xml ">
@@ -88,12 +88,11 @@
<copy file="${sourcesrc}/META-INF/application.xml" todir="${dist}/META-INF" />
<jar jarfile="${dist}/MyHealth.ear" basedir="${dist}" update="yes" />
</target>
<!-- Deploy the ear. Copy the ear of the JBoss deployment directory -->
<target name="deployear" depends="ear">
<target name="deployear" depends="ear" >
<copy file="${dist}/MyHealth.ear" todir="${deploy}" />
</target>
<!-- Clean the build directory -->
<target name="clean">
<antcall target="init" />