-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.xml
executable file
·81 lines (70 loc) · 2.71 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?xml version="1.0"?>
<project name="wallmount" default="dist" basedir=".">
<property name="dist.dir" location="dist"/>
<property name="assemble.dir" location="assemble"/>
<property name="version" value="1.1.M1"/>
<property name="dojo.source.dir" location="dojo-release-1.5.0-src" />
<property name="dojobuild.lib" location="${dojo.source.dir}/util/shrinksafe" />
<property name="dojobuild.dir" location="${dojo.source.dir}/util/buildscripts" />
<property name="dojobuild.js" location="${dojobuild.dir}/build.js" />
<property name="dojoprofile" value="wmvisualizer" />
<path id="dojojars">
<fileset dir="${dojobuild.lib}" includes="js.jar" />
<fileset dir="${dojobuild.lib}" includes="shrinksafe.jar" />
</path>
<target name="clean">
<delete dir="${assemble.dir}"/>
<delete dir="${dist.dir}"/>
</target>
<target name="dist" depends="clean,assemble-wallmount,assemble-dojo">
<mkdir dir="${dist.dir}"/>
<zip file="${dist.dir}/hqu_wmvisualizer-${version}.zip">
<fileset dir="${assemble.dir}">
<include name="wmvisualizer/**"/>
</fileset>
</zip>
</target>
<target name="build-dojo">
<java fork="true" dir="${dojobuild.dir}" failonerror="yes"
classname="org.mozilla.javascript.tools.shell.Main">
<classpath>
<path refid="dojojars"/>
</classpath>
<arg line="${dojobuild.js}"/>
<arg line="profile=${dojoprofile}"/>
<arg line="action=release"/>
<arg line="copyTests=false"/>
<arg line="mini=false"/>
<arg line="version=${version}"/>
<arg line="optimize=shrinksafe"/>
<arg line="cssOptimize=comments.keepLines"/>
</java>
</target>
<target name="assemble-wallmount">
<copy todir="${assemble.dir}/wmvisualizer">
<fileset dir="wallmount">
<include name="**"/>
</fileset>
</copy>
</target>
<target name="assemble-dojo" depends="build-dojo">
<copy todir="${assemble.dir}/wmvisualizer/public/js">
<fileset dir="${dojo.source.dir}/release/dojo">
<include name="**"/>
</fileset>
</copy>
</target>
<target name="build-expect-dojo-builded" depends="clean,assemble-wallmount">
<copy todir="${assemble.dir}/wmvisualizer/public/js">
<fileset dir="${dojo.source.dir}/release/dojo">
<include name="**"/>
</fileset>
</copy>
<mkdir dir="${dist.dir}"/>
<zip file="${dist.dir}/hqu_wmvisualizer-${version}.zip">
<fileset dir="${assemble.dir}">
<include name="wmvisualizer/**"/>
</fileset>
</zip>
</target>
</project>