-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.xml
31 lines (25 loc) · 1.2 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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>