-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
30 lines (24 loc) · 960 Bytes
/
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
<project name="Puzzle" basedir=".">
<property name="build" value="build"/>
<property name="yui-compressor-jar" value="lib/yuicompressor/yuicompressor-2.4.7.jar" />
<target name="check-yui-compressor">
<available file="${yui-compressor-jar}" property="yuicompressor.present"/>
</target>
<target name="combine" depends="check-yui-compressor" if="yuicompressor.present">
<mkdir dir="${build}"/>
<concat destfile="${build}\combined.js" append="true">
<fileset dir=".">
<include name="*.js" />
</fileset>
</concat>
</target>
<target name="minify" depends="combine">
<java jar="${yui-compressor-jar}" fork="true">
<arg line="${build}/combined.js -o ${build}/casse-tete.min.js"/>
</java>
<delete file="${build}/combined.js"/>
</target>
<target name="clean">
<delete dir="${build}"/>
</target>
</project>