-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
39 lines (28 loc) · 934 Bytes
/
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
<?xml version="1.0"?>
<project basedir="." default="compile">
<taskdef name="jscomp" classname="com.google.javascript.jscomp.ant.CompileTask"
classpath="build/closure-compiler.jar"/>
<target name="compile">
<filelist id="sources" dir="${basedir}/src/js">
<file name="main.js"/>
</filelist>
<concat destfile="war/js/main_uncompiled.js" append="false">
<filelist refid="sources" />
</concat>
<jscomp compilationLevel="whitespace" warning="quiet"
debug="true" output="war/js/main_debug.js">
<sources refid="sources" />
</jscomp>
<jscomp compilationLevel="simple" warning="verbose"
debug="false" output="war/js/main_optimized.js">
<sources refid="sources" />
</jscomp>
</target>
<target name="clean">
<delete>
<fileset dir="war/js">
<include name="*.js"/>
</fileset>
</delete>
</target>
</project>