-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
43 lines (35 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
43
<?xml version="1.0" encoding="UTF-8"?>
<project name="com_music" default="build" basedir=".">
<description>Ant Build File for com_music</description>
<target name="build" depends="clean, init, checkphp, checkxml, build_component, info" />
<target name="init" description="creates necessary directories to build with">
</target>
<target name="build_component" description="packages the final component file">
<zip destfile="com_music.zip" basedir="." excludes="build.xml, antconfig.txt, com_music.zip .git/** .gitignore" />
</target>
<target name="info" description="prints information">
<echo message="Project: com_music" />
<tstamp>
<format property="buildtime" pattern="yyyy-MM-dd'T'HH:mm:ss" />
</tstamp>
<echo message="Buildtime: ${buildtime}" />
</target>
<target name="clean" description="Destroys all generated files and dirs.">
<delete file="com_music.zip" />
</target>
<target name="checkphp">
<apply executable="php" failonerror="true">
<arg value="-l" />
<fileset dir=".">
<include name="**/*.php" />
</fileset>
</apply>
</target>
<target name="checkxml">
<xmlvalidate lenient="yes" warn="yes">
<fileset dir=".">
<include name="**/*.xml" />
</fileset>
</xmlvalidate>
</target>
</project>