forked from mesos/chronos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
31 lines (27 loc) · 1.14 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
<?xml version="1.0" encoding="utf-8"?>
<project name="chronos">
<target name="-optimize" description="Combine and minify files.">
<exec executable="node">
<arg value="${requirejs.optimizer.script}"/>
<arg value="-o"/>
<arg value="${requirejs.optimizer.settings}"/>
</exec>
<echo message="optimized ${requirejs.optimizer.settings} with node" />
</target>
<target name="assets.uptodate" depends="sourceDir.check" if="sourceDir.nochanges">
<echo>${sourceDir} Hasn't been updated, skipping asset compilation.</echo>
</target>
<target name="sourceDir.check">
<uptodate property="sourceDir.nochanges">
<srcfiles dir="${sourceDir}" includes="**/*" />
<mapper type="merge" to="${sourceDir}/build/build.txt" />
</uptodate>
</target>
<target name="generateAssets" depends="assets.uptodate" unless="sourceDir.nochanges">
<echo message="Combining and minifying JS files." />
<antcall target="-optimize">
<param name="requirejs.optimizer.script" value="${optimizerFile}" />
<param name="requirejs.optimizer.settings" value="${configFile}" />
</antcall>
</target>
</project>