-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
34 lines (29 loc) · 1.36 KB
/
build.xml
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
<?xml version="1.0"?>
<project basedir="." default="compile">
<taskdef name="jsmin"
classname="net.matthaynes.jsmin.JSMin_Task"
classpath="${basedir}/build/jsmin/jsmin.0.2.4.jar"/>
<taskdef name="jslint"
classname="com.googlecode.jslint4java.ant.JSLintTask"
classpath="${basedir}/build/jslint/jslint4java-2.0.5.jar" />
<target name="check-js">
<jslint options="sloppy,nomen,plusplus,browser,unparam">
<formatter type="plain" />
<fileset dir="js" includes="**/*.js" excludes="lib/**/*.js" />
</jslint>
</target>
<target name="concat-js" depends="check-js">
<concat destfile="allat.js" encoding="UTF-8" outputencoding="UTF-8" fixlastline="true">
<filelist dir="js" files="config.js,polyfill.js,bootstrap.js" />
<fileset dir="js" includes="modules/*.js" excludes="modules/bootmodule.js" />
<filelist dir="js" files="modules/bootmodule.js" />
</concat>
</target>
<target name="compile" depends="concat-js">
<tstamp>
<format property="time" pattern="yyyy/MM/dd hh:mm aa" locale="en" />
</tstamp>
<jsmin srcfile="${basedir}/allat.js" suffix="true" copyright="(c) 2013 MIT license author: tszebeni.hu ${time}" />
<!--delete file="${basedir}/allat.js" / -->
</target>
</project>