-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
52 lines (42 loc) · 1.62 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?xml version="1.0" encoding="UTF-8"?>
<project name="sushi" default="all" basedir=".">
<import file="sushi.xml" />
<target name="package">
<!--sushi source="${REQUIRE_URL}" id="require" /-->
<sushi source="${JQUERY_URL}" id="jquery-1.4" />
<get dest="${TEMP_DIR}/require.js" src="${REQUIRE_URL}" />
<get dest="${TEMP_DIR}/cssp.js" src="${CSSP_URL}" />
<concat destfile="${TARGET_DIR}/require.js" fixlastline="yes">
<filelist dir="${ROOT_DIR}"
files="build/templates/require.top.txt
${TEMP_DIR}/require.js
${TEMP_DIR}/cssp.js
build/templates/require.tail.txt" />
</concat>
<delete dir="${TEMP_DIR}/jqueryui" />
<mkdir dir="${TEMP_DIR}/jqueryui" />
<tempfile property="temp.zip" suffix=".zip" />
<get dest="${temp.zip}" src="${JQUERYUI_URL}" />
<unzip dest="${TEMP_DIR}/jqueryui" src="${temp.zip}">
<patternset id="sources">
<include name="development-bundle/ui/*.js" />
</patternset>
</unzip>
<move todir="${TEMP_DIR}/jqueryui">
<fileset dir="${TEMP_DIR}/jqueryui/development-bundle/ui">
<include name="*.js"/>
</fileset>
</move>
<mkdir dir="${TARGET_DIR}/plugins" />
<concat destfile="${TARGET_DIR}/plugins/jqueryui-1.8.js" fixlastline="yes">
<filelist dir="${ROOT_DIR}" files="build/templates/jqueryui.top.txt" />
<fileset dir="${TEMP_DIR}/jqueryui">
<include name="*.js"/>
</fileset>
<filelist dir="${ROOT_DIR}" files="build/templates/jqueryui.tail.txt" />
</concat>
<copy file="${TARGET_DIR}/plugins/jqueryui-1.8.js"
tofile="${ROOT_DIR}/test/area/plugins/jqueryui-1.8.js" />
<delete file="${temp.zip}" />
</target>
</project>