forked from lippoliv/piwik-plugin-disabletracking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
29 lines (25 loc) · 1.08 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
<?xml version="1.0"?>
<project name="wai-matomo-plugin-DisableTracking" basedir="." default="release">
<property name="distribution.basedir" value="dist"/>
<property name="distribution.dir" value="${distribution.basedir}/DisableTracking"/>
<fileset dir="${project.basedir}" id="release-files">
<include name="README.md"/>
<include name="CHANGELOG.md"/>
<include name="plugin.json"/>
<include name="*.php"/>
<include name="plugin.json"/>
<include name="templates/**/*"/>
<include name="lang/**/*"/>
</fileset>
<target name="clean">
<delete dir="${distribution.basedir}" quiet="true"/>
</target>
<target name="release" description="Build release" depends="clean">
<mkdir dir="${distribution.dir}" />
<copy todir="${distribution.dir}">
<fileset refid="release-files"/>
</copy>
<tar destfile="dist/DisableTracking.tar.gz" compression="gzip" basedir="dist"/>
<delete dir="dist/DisableTracking" includeemptydirs="true" quiet="true"/>
</target>
</project>