forked from thomas-ernest/CodeIgniter-for-PHP_CodeSniffer
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
22 lines (18 loc) · 803 Bytes
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version="1.0" encoding="UTF-8" ?>
<project default="build">
<property name="src.dir" value="src" />
<property name="codingStandard" value="CodeIgniter" />
<!-- @todo also thinking about something like <property environment="env"/> and then env.PHPCS_HOME -->
<property name="phpcs.dir" value="/usr/share/php/PHP/CodeSniffer/" />
<!-- @todo find a way to allow users to forgot slash at the end of variable phpcs.dir -->
<property name="dst.dir" value="${phpcs.dir}Standards/${codingStandard}/" />
<target name="build">
<!-- delete dir="build" /-->
<mkdir dir="${dst.dir}" />
<copy todir="${dst.dir}">
<fileset dir="${src.dir}"/>
</copy>
<!-- delete deprecated file -->
<delete file="${dst.dir}/CodeIgniterCodingStandard.php"/>
</target>
</project>