Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 70 lines (52 sloc) 2.384 kb
e1351be Jaime Bueza Adding new build.xml that will allow users to generate mojo.js and mojo....
jbueza authored
1 <project name="Blast Mojo" default="all" basedir=".">
2 <property name="PREFIX" value="." />
3 <property description="Folder for mojo and min target" name="dist" value="${PREFIX}/dist" />
4
5 <property name="compiler" value="build/yuicompressor-2.4.2.jar" />
6 <property name="BM" value="${dist}/mojo.js" />
7 <property name="BM_MIN" value="${dist}/mojo.min.js" />
8
9 <target name="all" depends="mojo,lint,min" />
10
11 <target name="mojo" description="Main mojo build, concatenates source files and replaces @VERSION">
12 <echo message="Building ${BM}" />
13 <mkdir dir="${dist}" />
14 <concat destfile="${BM}">
15 <fileset file="src/LICENSE" />
16
17 <fileset file="src/mojo.js" />
18 <fileset file="src/query.js" />
19 <fileset file="src/css.js" />
20 <fileset file="src/animate.js" />
21
22 <fileset file="src/command/Behavior.js" />
23 <fileset file="src/command/Command.js" />
24 <fileset file="src/command/Rule.js" />
25
26 <fileset file="src/service/Locator.js" />
27 <fileset file="src/service/Service.js" />
28
29 <fileset file="src/helper/Inflector.js" />
30 <fileset file="src/helper/XML.js" />
31 <fileset file="src/helper/Validation.js" />
32
33 <fileset file="src/ModelReference.js" />
34 <fileset file="src/Model.js" />
35 <fileset file="src/History.js" />
36
37 <fileset file="src/MessagingTopic.js" />
38 <fileset file="src/Messaging.js" />
39
40
41 <fileset file="src/controller/Param.js" />
42 <fileset file="src/controller/Map.js" />
43 <fileset file="src/controller/Request.js" />
44 <fileset file="src/controller/Controller.js" />
45
46 </concat>
47
48 <echo message="${BM} built." />
49 </target>
50
51 <target name="lint" depends="mojo" description="Check jQuery against JSLint">
52 <exec executable="java">
53 <arg line="-jar build/js.jar build/jslint-check.js" />
54 </exec>
55 </target>
56
57 <target name="min" depends="mojo" description="Remove all comments and whitespace, no compression, great in combination with GZip">
58 <echo message="Building ${BM_MIN}" />
59 <java jar="${compiler}" fork="true" failonerror="true" maxmemory="256m">
60 <arg line="${BM} -o ${BM_MIN} --charset UTF-8 --preserve-semi" />
61 </java>
62
63 <echo message="${BM_MIN} built." />
64 </target>
65
66 <target name="clean">
67 <delete dir="${dist}" />
68 </target>
69
70 </project>
Something went wrong with that request. Please try again.