-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
executable file
·112 lines (92 loc) · 2.79 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<project name="Sztakipedia Toolbar" default="help" basedir=".">
<target name="help">
<echo message="Common build targets:" />
<echo message="build - Same as clean+compile" />
<echo message="compile - Compiles JavaScript files by Closure" />
<echo message="clean - Remove all generated files" />
</target>
<!-- <property name="" value="" />-->
<!-- JsDoc toolkit -->
<taskdef
name="jsdoctoolkit"
classname="uk.co.darrenhurley.ant.tasks.JsDocToolkit"
classpath="${basedir}/lib/jsdoc-toolkit-ant-task-1.1.2/jsdoc-toolkit-ant-task-1.1.2.jar:${basedir}/lib/rhino1_7R1/js.jar"
/>
<!-- Closure Compiler -->
<taskdef
name="jscomp"
classname="com.google.javascript.jscomp.ant.CompileTask"
classpath="${basedir}/lib/closure-compiler-20110615/compiler.jar"/>
<!-- TARGETS -->
<!-- build -->
<target name="build" depends="clean,compile" />
<!-- all -->
<target name="all" depends="clean,compile,jsdoc" />
<!-- generate HTML documentation -->
<target name="jsdoc">
<jsdoctoolkit
jsdochome="${basedir}/lib/jsdoc-toolkit-2.4.0/"
template="sztaki"
outputdir="${basedir}/docs/jsdoc/"
inputdir="src" depth="0"
includeprivate="yes"
includeundocumented="no"
verbose="yes">
<arg name="copyright" value=" 2011 - MTA SZTAKI "/>
<!--
<fileset dir="src">
<include name="*.js" />
</fileset>
-->
</jsdoctoolkit>
</target>
<!-- invoke compiler -->
<target name="compile">
<jscomp compilationLevel="simple"
warning="verbose"
debug="false"
output="${basedir}/build/Sztakipedia.js">
<externs dir="${basedir}/src/extern">
<file name="jquery-1.6.extern.js"/>
<file name="mediawiki.extern.js"/>
<file name="json2.extern.js"/>
</externs>
<!--
<externs dir="${basedir}/lib/mediawiki-ui-1.16">
<file name="usability.js"/>
<file name="plugins.combined.js"/>
</externs>
<externs dir="${basedir}/lib/mediawiki-common">
<file name="wikibits.js"/>
<file name="ajax.js"/>
<file name="MediaWiki_Common.js"/>
</externs>
-->
<!--
<externs dir="${basedir}/lib/mediawiki-vector">
<file name="vector.js"/>
</externs>
-->
<externs dir="${basedir}/src">
<file name="SztakipediaToolbarMessages-en.js"/>
</externs>
<sources dir="${basedir}/src">
<!-- <fileset> not supported -->
<file name="SztakipediaToolbar.js"/>
<file name="SztakipediaToolbarBase.js"/>
<file name="SztakipediaToolbarConfig.js"/>
<file name="SztakipediaClient.js"/>
</sources>
<!--
<sources dir="${basedir}/other">
<file name="simple3.js"/>
</sources>
-->
</jscomp>
</target>
<!-- remove generated files -->
<target name="clean">
<!--<delete dir="${basedir}/docs/jsdoc"/>-->
<delete dir="${basedir}/build"/>
</target>
</project>