-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
executable file
·41 lines (31 loc) · 1.27 KB
/
build.xml
File metadata and controls
executable file
·41 lines (31 loc) · 1.27 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="jtemp" default="build" basedir=".">
<property name="source" value="src"/>
<target name="clean"
description="Clean up and create artifact directories">
<delete dir="${basedir}/build"/>
<mkdir dir="${basedir}/build"/>
</target>
<target name="jslint" description="Run the JSLint tool on JS files">
<fileset dir="public/scripts" id="jsfiles.raw">
<include name="**/*.js" />
<exclude name="**/*.min.js" />
</fileset>
<pathconvert pathsep=" " property="jsfiles.clean" refid="jsfiles.raw" />
<exec executable="java" output="jslint.xml">
<arg line="-jar jslint4java.jar --report xml ${jsfiles.clean}" />
</exec>
</target>
<target name="qunit" description="runs QUnit tests using PhantomJS">
<!-- QUnit Javascript Unit Tests -->
<echo message="Executing QUnit Javascript Unit Tests..."/>
<apply executable="phantomjs" >
<arg value="${basedir}/tools/qunit-runner.js" />
<arg line="--qunit ${basedir}/tools/qunit.js --tests ${basedir}/qunit_tests --junit tools/qunit.xml" />
<fileset dir="${basedir}/qunit_tests">
<include name="file.js" />
</fileset>
</apply>
</target>
<target name="build" depends="clean"/>
</project>