Menu

[r66]: / trunk / PhpCheckstyle / build.xml  Maximize  Restore  History

Download this file

36 lines (30 with data), 1.1 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
<?xml version="1.0"?>
<project name="PHPCheckstyle" default="phpcheckstyle" basedir=".">
<!-- Test the environment -->
<target name="targetCheck">
<condition property="isUnix">
<and>
<os family="unix" />
</and>
</condition>
<condition property="isWindows">
<and>
<os family="windows" />
</and>
</condition>
</target>
<!-- Launch PHP CheckStyle -->
<target name="_phpcheckstylewindows" depends="targetCheck" if="isWindows">
<echo>Windows</echo>
<exec executable="./phpcheckstyle.cmd" dir="."></exec>
</target>
<!-- Launch PHP CheckStyle -->
<target name="_phpcheckstyleunix" depends="targetCheck" if="isUnix">
<echo>Unix</echo>
<chmod file="./phpcheckstyle.sh" perm="ugo+rx" />
<exec executable="./phpcheckstyle.sh" dir="."></exec>
</target>
<!-- Launch PHP CheckStyle-->
<target name="phpcheckstyle" description="Launch PHP CheckStyle" depends="_phpcheckstylewindows, _phpcheckstyleunix">
</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.