forked from ModDamage/ModDamage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
87 lines (70 loc) · 3.02 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?xml version="1.0" encoding="UTF-8"?>
<project name="ModDamage" default="jar" basedir=".">
<target name="clean-web">
<delete dir="bin/web"/>
</target>
<target name="clean" depends="clean-web">
<delete dir="bin"/>
</target>
<target name="build" depends="clean-web" description="compile the source">
<mkdir dir="bin"/>
<mkdir dir="bin/web"/>
<javac srcdir="src" destdir="bin" includeantruntime="false" encoding="UTF-8">
<compilerarg value="-Xlint"/>
<classpath>
<fileset dir="resource">
<include name="*.jar"/>
</fileset>
</classpath>
</javac>
<echo>Copying webserver files.</echo>
<copy todir="bin/web" overwrite="true" >
<fileset dir="web" casesensitive="false">
<!--Include main application-->
<include name="app.html"/>
<include name="app.js"/>
<include name="editor.js"/>
<include name="style.css"/>
<include name="views/**"/>
<exclude name="api/**"/>
<include name="js/**"/>
<!--Include Minimized Bootstrap Libraries.-->
<include name="bootstrap/**/*.min.*"/>
<!--Include Fonts-->
<include name="bootstrap/fonts/*"/>
<include name="**/*.min.js"/>
<include name="**/*.min.js.map"/>
<!--<include name="bower_components/ace-builds/src-min/**"/>-->
<include name="bower_components/ace-builds/src-noconflict/**"/>
<include name="bower_components/angular-ui-ace/ui-ace.js"/>
<!--Bootstrap-->
<exclude name="bower_components/angular-ui-bootstrap/**"/>
<exclude name="bower_components/bootstrap/**"/>
<include name="bower_components/bootstrap/dist/*.min.*"/>
<include name="bower_components/angular/*.js"/>
<include name="bower_components/angular/*.js.map"/>
<include name="bower_components/angular/*.css"/>
<include name="bower_components/angular-ui-bootstrap-bower/*.js"/>
<include name="bower_components/angular-ui-ace/*.js"/>
<!--Include all minified versions of files-->
<include name="bower_components/jquery/*.min.*"/>
<!--
Don't include readmes or demos. We know what the api we use does.
Also Don't include grunt files (Api builders)
Just include licenses just in case some require a license to be copied over.
-->
<exclude name="**/Gruntfile.js" />
<exclude name="**/*README*" />
<exclude name="**/*demo*.*" />
<exclude name="**/*TEST*" />
<include name="**/*LICENSE*" />
</fileset>
</copy>
</target>
<target name="jar" depends="build">
<jar destfile="ModDamage.jar" update="no">
<fileset dir="bin" />
<fileset dir="." includes="plugin.yml" />
</jar>
</target>
</project>