-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
55 lines (45 loc) · 2.13 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
<project name="ipov-wbt" default="list" basedir=".">
<!--
Currently just a wrapper, run the 'build-main' target to trigger the requirejs build tooling to run
-->
<property name="r.js" value="bin/r.js" />
<property name="rhino.jar" value="bin/rhino/js.jar" />
<property name="closure.jar" value="bin/closure/compiler.jar" />
<target name="list">
<description>List the files for the ipov-wbt site, this is mainly a way to create a scorm manifest entry.</description>
<fileset id="fileList" dir="C:/SiLearn-Content/LOA_Tooling/WBT/site/">
</fileset>
<pathconvert pathsep="
" dirsep="/" property="files" refid="fileList">
<map from="C:/SiLearn-Content/LOA_Tooling/WBT/site/" to=""/>
</pathconvert>
<echo>${files}</echo>
</target>
<target name="-optimize" description="Run 'r.js' on a build profile to combine and minify files. Specify the build profile using 'requirejs.buildProfile'">
<java classname="org.mozilla.javascript.tools.shell.Main">
<classpath>
<pathelement location="${rhino.jar}" />
<pathelement location="${closure.jar}" />
</classpath>
<arg value="${r.js}"/>
<arg value="-o"/>
<arg value="${requirejs.buildProfile}"/>
</java>
<echo message="optimized ${requirejs.buildProfile}" />
</target>
<target name="build-main">
<description>Build the main WBT 'Player' code, excluding the theme component.</description>
<mkdir dir="build"/>
<antcall target="-optimize">
<param name="requirejs.buildProfile" value="build-profile-main.js" />
</antcall>
</target>
<!--
It seems that the main 'module' they have for building is to declare all modules in mode 'profile' so that you can then use cross module deps for include and exclude.
<target name="build-themes">
<description>Build the themes.</description>
<antcall target="-optimize">
<param name="requirejs.buildProfile" value="build-profile-themes.js" />
</antcall>
</target>
-->
</project>