-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.xml
More file actions
executable file
·56 lines (35 loc) · 1.54 KB
/
build.xml
File metadata and controls
executable file
·56 lines (35 loc) · 1.54 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<project name="wolfnet-idx-for-wordpress" default="build" basedir=".">
<property name="dir.ant" value="${basedir}/.ant" />
<property name="tool.ant-contrib" value="${dir.ant}/ant-contrib/lib/ant-contrib.jar" />
<available file=".git" type="dir" property="git.present"/>
<condition property="gruntExec" value="grunt.cmd" else="grunt">
<os family="windows" />
</condition>
<!-- Define the Java Library for the AntContrib project -->
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="${tool.ant-contrib}" />
</classpath>
</taskdef>
<target name="compile">
<exec executable="${gruntExec}" dir="${basedir}"><arg value="compile" /></exec>
</target>
<target name="compile-less">
<exec executable="${gruntExec}" dir="${basedir}"><arg value="compile:less" /></exec>
</target>
<target name="minify-javascript">
<exec executable="${gruntExec}" dir="${basedir}"><arg value="compile:js" /></exec>
</target>
<target name="build">
<exec executable="${gruntExec}" dir="${basedir}"><arg value="build" /></exec>
</target>
<target name="dist">
<exec executable="${gruntExec}" dir="${basedir}"><arg value="build" /></exec>
</target>
<target name="test-dist">
<exec executable="${gruntExec}" dir="${basedir}"><arg value="build:test" /></exec>
</target>
<target name="git-revision" description="Print git revision" if="git.present">
<exec executable="${gruntExec}" dir="${basedir}"><arg value="git-info:shortSHA" /></exec>
</target>
</project>