Menu

[r121]: / trunk / PhpCheckstyle / Deploy.xml  Maximize  Restore  History

Download this file

75 lines (57 with data), 2.4 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0" encoding="utf-8"?>
<!-- ======================================================================
Project: PHPCheckStyle
Author : Justin
Date of Creation : 31 jan 2012 2:24:30 pm
Build.XML Version : 1.0
Ant Build script for PHPCheckstyle - A Static Analysis tool for PHP.
Available Options: (Run with Ant -f deploy.xml)
``````````````````
package : Packages PHPcheckstyle in a zip file for release.
====================================================================== -->
<project name="PHPCheckStyle" default="package">
<description>
Static Analysis tool for PHP.
</description>
<!-- =================================
target: init
Initializes variables.
================================= -->
<target name="-init">
<property name="build.dir" value="build" />
<property name="dist.dir" value="${build.dir}/dist" />
<property name="phpcheckstyle.version.major" value="0" />
<property name="phpcheckstyle.version.minor" value="10.2" />
<property name="phpcheckstyle.version" value="${phpcheckstyle.version.major}.${phpcheckstyle.version.minor}" />
<property name="phpcheckstyle.name" value="PHPCheckStyle-${phpcheckstyle.version}.zip"/>
</target>
<!-- =================================
target: clean
Deletes the output folder.
================================= -->
<target name="-clean" depends="-init">
<delete dir="${build.dir}" />
</target>
<!-- =================================
target: prepare
creates a new build folder.
================================= -->
<target name="-prepare" depends="-clean">
<mkdir dir="${build.dir}" />
<mkdir dir="${dist.dir}" />
</target>
<!-- =================================
target: package
Packages PHPcheckstyle in a zip file for release.
================================= -->
<target name="package" depends="-prepare">
<zip destfile="${dist.dir}/${phpcheckstyle.name}" basedir="${basedir}">
<exclude name="Deploy.xml"/>
<exclude name="/build/"/>
<exclude name="/checkstyle_result/"/>
<exclude name=".models"/>
<exclude name=".project"/>
<exclude name="checkstyle_resultncss.xml"/>
</zip>
</target>
</project>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.