forked from CardContact/scsh-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
134 lines (113 loc) · 4.55 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<?xml version="1.0" encoding="UTF-8"?>
<project name="doc" basedir="." default="applyTemplate">
<property name="jsdoc" location="jsdoc"/>
<property name="build" location="build"/>
<property name="doc" location="doc"/>
<target name="init">
<tstamp />
</target>
<target name="applyTemplate" depends="">
<apply executable="perl" dir="${doc}" force="true">
<arg value="stt.pl" />
<fileset dir="." includes="**/*.html"/>
</apply>
<delete>
<fileset dir="." includes="**/*.html~" defaultexcludes="false"/>
</delete>
</target>
<target name="jsdoc">
<apply executable="jsdoc" addsourcefile="true" dir="${basedir}/icao" parallel="true" relative="true">
<arg line="--directory=${doc}/icao/jsdoc" />
<!-- Collect the JS-files -->
<fileset dir="${basedir}/icao" includes="**/*.js"/>
</apply>
<apply executable="jsdoc" addsourcefile="true" dir="${basedir}/cardsim" parallel="true" relative="true">
<arg line="--directory=${doc}/cardsim/jsdoc" />
<!-- Collect the JS-files -->
<fileset dir="${basedir}/cardsim" includes="**/*.js"/>
</apply>
<apply executable="jsdoc" addsourcefile="true" dir="${basedir}/eID" parallel="true" relative="true">
<arg line="--directory=${doc}/eID/jsdoc" />
<!-- Collect the JS-files -->
<fileset dir="${basedir}/eID" includes="**/*.js"/>
</apply>
<apply executable="jsdoc" addsourcefile="true" dir="${basedir}/emv" parallel="true" relative="true">
<arg line="--directory='${doc}/emv/jsdoc'" />
<!-- Collect the JS-files -->
<fileset dir="${basedir}/emv" includes="**/*.js"/>
</apply>
<apply executable="jsdoc" addsourcefile="true" dir="${basedir}/mifare" parallel="true" relative="true">
<arg line="--directory='${doc}/mifare/jsdoc'" />
<!-- Collect the JS-files -->
<fileset dir="${basedir}/mifare" includes="**/*.js"/>
</apply>
<apply executable="jsdoc" addsourcefile="true" dir="${basedir}/sc-hsm" parallel="true" relative="true">
<arg line="--directory='${doc}/sc-hsm/jsdoc'" />
<!-- Collect the JS-files -->
<fileset dir="${basedir}/sc-hsm" includes="**/*.js"/>
</apply>
<apply executable="jsdoc" addsourcefile="true" dir="${basedir}/eGK" parallel="true" relative="true">
<arg line="--directory='${doc}/eGK/jsdoc'" />
<!-- Collect the JS-files -->
<fileset dir="${basedir}/eGK" includes="**/*.js"/>
</apply>
<apply executable="jsdoc" addsourcefile="true" dir="${basedir}/geldkarte" parallel="true" relative="true">
<arg line="--directory='${doc}/geldkarte/jsdoc'" />
<!-- Collect the JS-files -->
<fileset dir="${basedir}/geldkarte" includes="**/*.js"/>
</apply>
<apply executable="jsdoc" addsourcefile="true" dir="${basedir}/musclecard" parallel="true" relative="true">
<arg line="--directory='${doc}/musclecard/jsdoc'" />
<!-- Collect the JS-files -->
<fileset dir="${basedir}/musclecard" includes="**/*.js"/>
</apply>
<apply executable="jsdoc" addsourcefile="true" dir="${basedir}/tutorial" parallel="true" relative="true">
<arg line="--directory='${doc}/tutorial/jsdoc'" />
<!-- Collect the JS-files -->
<fileset dir="${basedir}/tutorial" includes="**/*.js"/>
</apply>
</target>
<target name="package" depends="init, applyTemplate, jsdoc">
<property name="bundlename" value="scripts-${DSTAMP}.zip"/>
<property name="bundle" location="released/${bundlename}"/>
<filter token="bundlename" value="${bundlename}"/>
<mkdir dir="${build}"/>
<copy todir="${build}">
<fileset dir="${basedir}">
<exclude name="doc/"/>
<exclude name="**/.svn"/>
<exclude name="build.xml"/>
<exclude name="build/"/>
<exclude name="released/"/>
</fileset>
</copy>
<copy todir="${build}/doc" filtering="true">
<fileset dir="${doc}">
<include name="**/*.html"/>
</fileset>
</copy>
<copy todir="${build}/doc">
<fileset dir="${doc}">
<include name="**/*.css"/>
<include name="**/*.jpg"/>
<include name="**/*.gif"/>
<include name="**/*.png"/>
</fileset>
</copy>
<mkdir dir="released"/>
<zip destfile="${bundle}" includes="*">
<zipfileset dir="${build}" prefix="scripts"/>
</zip>
</target>
<target name="publish" depends="init,applyTemplate,jsdoc">
<exec executable="scp" dir="${basedir}/doc">
<arg line="-r . asc@diavola:/var/www/openscdp.org/scripts" />
</exec>
</target>
<target name="clean">
<delete dir="${build}"/>
<delete includeemptydirs="true">
<fileset dir="${basedir}/doc" includes="**/jsdoc/**"/>
</delete>
</target>
</project>