-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
executable file
·46 lines (44 loc) · 1.34 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
<project name="AdaptiveCompositeMapProjection" default="build.dev">
<import file="buildr/buildr.xml" />
<property name="src.dir" value="src/" />
<property name="build.dir" value="./" />
<tstamp>
<format property="build.time" pattern="MMMM d, yyyy hh:mm:ss a" locale="en, US" />
</tstamp>
<target name="init">
<!--
<mkdir dir="${build.dir}" />-
-->
</target>
<target name="clean">
<!--
<delete dir="${build.dir}" />
-->
<delete file="${build.dir}/AdaptiveCompositeMap.js" />
</target>
<target name="concatenate">
<concat destfile="${build.dir}/AdaptiveCompositeMap.js" fixlastline="yes" eol="lf">
<header>/* Build Time: ${build.time} */</header>
<fileset dir="${src.dir}" includes="**/*.js" />
</concat>
<echo file="${build.dir}/AdaptiveCompositeMap.js" append="true">
var adaptiveCompositeMapBuildTimeStamp = "${build.time}";
</echo>
</target>
<target name="validate">
<jshint>
<fileset dir="${build.dir}" includes="*.js" />
</jshint>
</target>
<target name="minify">
<closure outputdir="${build.dir}" compilation-level="SIMPLE_OPTIMIZATIONS">
<fileset dir="${build.dir}" includes="*.js" />
</closure>
</target>
<target name="copyshaders">
<copy todir="shader">
<fileset dir="src/shader"/>
</copy>
</target>
<target name="build.dev" depends ="clean, init, concatenate, copyshaders"></target>
</project>