-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Agregado archivo
build.xml
con tareas de deploy y llamada a Maven p…
…ara limpiar, compilar y empaquetar el proyecto.
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<project name="mvn-caller-elections" default="deploy" basedir="."> | ||
|
||
<property name="maven.executable" value="${maven.home}/bin/mvn" /> | ||
|
||
<target name="deploy" description="deploy full" depends="deploy-ws"> | ||
</target> | ||
|
||
<target name="deploy-ws" description="deploy ws" depends="deploy-web"> | ||
<copy todir="${WILDFLY20}${STANDALONE-ELECCIONES}" file="elections-services/target/elections-ws.war" /> | ||
<copy todir="${dist}" file="elections-services/target/elections-ws.war" /> | ||
</target> | ||
|
||
<target name="deploy-web" description="deploy web" depends="deploy-ejb"> | ||
<copy todir="${WILDFLY20}${STANDALONE-ELECCIONES}" file="elections-admin-web/target/elections.war" /> | ||
<copy todir="${dist}" file="elections-admin-web/target/elections.war" /> | ||
</target> | ||
|
||
<target name="deploy-ejb" description="deploy ejb" depends="call-maven"> | ||
<copy todir="${WILDFLY20}${STANDALONE-ELECCIONES}" file="elections-ejb/target/elections-ejb.jar" /> | ||
<copy todir="${dist}" file="elections-ejb/target/elections-ejb.jar" /> | ||
</target> | ||
|
||
<target name="call-maven"> | ||
<exec executable="${maven.executable}"> | ||
<arg value="clean" /> | ||
<arg value="compile" /> | ||
<arg value="package" /> | ||
<!-- <arg value="install" />--> | ||
</exec> | ||
</target> | ||
</project> |