-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
executable file
·58 lines (38 loc) · 1.42 KB
/
build.xml
File metadata and controls
executable file
·58 lines (38 loc) · 1.42 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
<project name="forces.forms.validation" default="help" basedir="."
xmlns:ivy="antlib:org.apache.ivy.ant"
xmlns:jsl="antlib:com.googlecode.jslint4java">
<description>forces.forms.validation</description>
<!-- set global properties for this build -->
<property name="source.dir" location="src"/>
<property name="build.dir" location="build"/>
<property name="log.dir" location="logs"/>
<tstamp/>
<target name="help" description="command line help">
<echo message="use 'ant clean all' to build"/>
</target>
<path id="ant.tasks.classpath">
<fileset dir="lib" includes="*.jar" />
</path>
<taskdef uri="antlib:com.googlecode.jslint4java"
resource="com/googlecode/jslint4java/antlib.xml"
classpathref="ant.tasks.classpath"/>
<target name="resolve" description="--> retrieve dependencies with ivy">
<ivy:retrieve />
</target>
<target name="clean" description="cleanup">
<delete dir="${build.dir}"/>
<delete dir="${log.dir}"/>
</target>
<target name="init" description="initialise">
<mkdir dir="${build.dir}"/>
<mkdir dir="${log.dir}"/>
</target>
<target name="jslint" description="quality control with jslint">
<jsl:jslint options="undef,white">
<formatter type="plain"/>
<formatter type="xml" destfile="${log.dir}/jslint.xml"/>
<fileset dir="${source.dir}" includes="**/*.js"/>
</jsl:jslint>
</target>
<target name="all" description="build" depends="init,resolve,jslint"/>
</project>