-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
47 lines (39 loc) · 1.52 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
43
44
45
46
47
<?xml version="1.0" encoding="UTF-8"?>
<project name="Infinity Slider Extension" default="dist">
<!-- Vars -->
<property name="slug" value="infext-slider" />
<!-- Paths -->
<property name="phpunitpath" value="/usr/local/bin/phpunit" />
<property name="wpclipath" value="/usr/local/bin/wp" />
<property name="etc.dir" location="${basedir}/etc" />
<property name="source.dir" location="${basedir}/src" />
<property name="build.dir" location="${basedir}/build" />
<property name="build.dist" location="${build.dir}/dist" />
<property name="build.doc" location="${build.dir}/doc" />
<property name="build.env" location="${build.dir}/env" />
<include file="buildinfo.xml" as="buildinfo" />
<!-- Target: prepare -->
<target name="prepare">
<echo message="Preparing build dir..." />
<mkdir dir="${build.dir}" />
</target>
<!-- Target: dist-clean -->
<target name="dist-clean">
<echo message="Removing old dist artifacts..." />
<delete dir="${build.dist}" quiet="true" />
</target>
<!-- Target: dist-prepare -->
<target name="dist-prepare" depends="prepare">
<echo message="Preparing dist dir..." />
<mkdir dir="${build.dist}" />
</target>
<!-- Target: dist (default) -->
<target name="dist" depends="dist-prepare, buildinfo.all">
<echo message="Creating zip archive..." />
<zip destfile="${build.dist}/${slug}.zip">
<zipfileset dir="${source.dir}" prefix="${slug}" />
<zipfileset file="${build.dist}/BUILD.txt" prefix="${slug}" />
</zip>
<echo message="Files copied and compressed!" />
</target>
</project>