-
Notifications
You must be signed in to change notification settings - Fork 0
/
more_tasks_build.xml
77 lines (59 loc) · 2.52 KB
/
more_tasks_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
<?xml version="1.0" encoding="UTF-8"?>
<project default="test" basedir="." name="jsdoc3-ant-task">
<description>
This build file is used to create the osha-dvt-ilo project
and works with the common_build.xml file.
</description>
<property file="more_tasks.properties" />
<target name="test" description="Run documentation">
<echo>Using:</echo>
<echo> * Java: ${ant.java.version}</echo>
<echo> * Ant: ${ant.version}</echo>
<echo> * Rhino: ${rhino.version}</echo>
<taskdef name="jsdoc" classname="net.jannon.ant.tasks.JsDoc3" classpath="${jsdoc3-task-jar}:${rhino-jar}"/>
<echo message="Testing basic file..."/>
<jsdoc jsdochome="${jsdoc.home}" to="${docs.dir}" dir="${src.dir}" />
<echo message="Done."/>
</target>
<target name="documentation" description="Run documentation">
<echo>Using:</echo>
<echo> * Java: ${ant.java.version}</echo>
<echo> * Ant: ${ant.version}</echo>
<echo> * Rhino: ${rhino.version}</echo>
<taskdef name="jsdoc3" classname="net.jannon.ant.tasks.JsDoc3" classpath="${jar.location}:${rhino.jar.location}"/>
<!-- basic file test -->
<echo message="Testing basic file..."/>
<jsdoc3 jsdochome="${jsdoc.home}"
to="${report.dir}/testone"
file="${test.dir}/${test.file}" />
<echo message="Done."/>
<!-- basic dir test -->
<echo message="Testing basic directory..."/>
<jsdoc3 jsdochome="${jsdoc.home}"
to="${report.dir}/testtwo"
dir="${test.dir}/" />
<echo message="Done."/>
<!-- nested fileset element test -->
<echo message="Testing nested fileset..."/>
<jsdoc3 jsdochome="${jsdoc.home}"
to="${report.dir}/testthree">
<fileset dir="${test.dir}/" />
</jsdoc3>
<echo message="Done."/>
<!-- nested filelist element test -->
<echo message="Testing nested filelist..."/>
<jsdoc3 jsdochome="${jsdoc.home}"
to="${report.dir}/testfour">
<filelist dir="${test.dir}" files="test.js" />
</jsdoc3>
<echo message="Done."/>
<!-- nested arg element test -->
<echo message="Testing nested argument..."/>
<jsdoc3 jsdochome="${jsdoc.home}"
to="${report.dir}/testfive"
dir="${test.dir}">
<arg line="-X" />
</jsdoc3>
<echo message="Done."/>
</target>
</project>