-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbuild.xml
42 lines (42 loc) · 1.3 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
32
33
34
35
36
37
38
39
40
41
42
<?xml version="1.0" encoding="utf-8"?>
<project name="wpsbuilder">
<property name="build" location="build"/>
<target name="copy">
<copy file="index.html" todir="${build}/${ant.project.name}"/>
<copy file="favicon.ico" todir="${build}/${ant.project.name}"/>
<copy todir="${build}/${ant.project.name}/dist">
<fileset dir="dist"/>
</copy>
<copy todir="${build}/${ant.project.name}/components">
<fileset dir="components"/>
</copy>
<copy todir="${build}/${ant.project.name}/vendor">
<fileset dir="vendor"/>
</copy>
</target>
<target name="npm">
<exec executable="npm">
<arg line="install"/>
</exec>
</target>
<target name="bower">
<mkdir dir="components"/>
<exec executable="bower">
<arg line="install"/>
</exec>
</target>
<target name="gulp">
<mkdir dir="vendor"/>
<mkdir dir="dist"/>
<exec executable="gulp">
</exec>
</target>
<target name="war" depends="npm,bower,gulp,copy">
<war needxmlfile="false" destfile="${build}/${ant.project.name}.war">
<fileset dir="${build}/${ant.project.name}"/>
</war>
</target>
<target name="clean">
<delete dir="${build}"/>
</target>
</project>