This repository was archived by the owner on Nov 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-original.xml
More file actions
266 lines (208 loc) · 8.85 KB
/
Copy pathbuild-original.xml
File metadata and controls
266 lines (208 loc) · 8.85 KB
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="feedparser" default="jar" basedir=".">
<property name="jakarta.site2.home" location="../jakarta-site2"/>
<property name="compile.dir" value="compile"/>
<property name="dist.dir" value="dist"/>
<property name="junit.dir" value="junit"/>
<property name="src.dir" value="src"/>
<property environment="env"/>
<property file="build.properties"/>
<property name="project" value="feedparser"/>
<property name="product" value="FeedParser"/>
<property name="version.major" value="0"/>
<property name="version.minor" value="5"/>
<property name="version.sub" value="0"/>
<property name="version.desc" value="-RC1"/>
<property name="version" value="${version.major}.${version.minor}.${version.sub}${version.desc}"/>
<property name="docs.dest" value="./site"/>
<property name="docs.src" value="./xdocs"/>
<property name="year" value="2005"/>
<path id="anakia.classpath">
<fileset dir="${jakarta.site2.home}/lib">
<include name="*.jar"/>
</fileset>
</path>
<path id="project.classpath">
<fileset dir="lib">
<include name="*.jar"/>
</fileset>
</path>
<path id="junit.classpath">
<path refid="project.classpath"/>
<fileset dir="lib/build">
<include name="*.jar"/>
</fileset>
</path>
<target name="init">
<available property="junit.available"
classname="junit.framework.TestCase"/>
</target>
<target name="prep" depends="init">
<mkdir dir="${dist.dir}"/>
<mkdir dir="${compile.dir}"/>
<mkdir dir="${junit.dir}"/>
</target>
<target name="compile.main" depends="prep">
<javac srcdir="${src.dir}/java/"
classpathref="project.classpath"
destdir="${compile.dir}"
debug="true"
excludes="org/apache/commons/feedparser/test/**">
</javac>
</target>
<target name="compile.test" depends="prep" if="junit.available">
<javac srcdir="${src.dir}/java/"
classpathref="junit.classpath"
destdir="${junit.dir}"
debug="true"
includes="org/apache/commons/feedparser/test/**">
</javac>
</target>
<target name="clean" depends="init">
<delete dir="${dist.dir}"/>
<delete dir="${compile.dir}"/>
<delete dir="${junit.dir}"/>
</target>
<target name="jar" depends="compile.main">
<mkdir dir="${dist.dir}"/>
<jar compress="yes" jarfile="${dist.dir}/commons-feedparser-${version}.jar">
<fileset dir="${compile.dir}">
</fileset>
</jar>
</target>
<target name="dist" depends="jar,javadoc" description="build a distribution">
<copy file="LICENSE.txt" todir="${dist.dir}"/>
<copy file="NOTICE.txt" todir="${dist.dir}"/>
<copy todir="${dist.dir}">
<fileset dir="." includes="docs/**"/>
</copy>
</target>
<target name="run-example" description="Runs the example feed parser class"
depends="jar">
<java classpathref="project.classpath"
classname="org.apache.commons.feedparser.example.HelloFeedParser"
fork="true"
failonerror="true">
</java>
</target>
<target name="debug-feed" description="Debugs a feed"
depends="jar">
<java classpathref="project.classpath"
classname="org.apache.commons.feedparser.Main"
fork="true"
failonerror="true">
<arg value="${feed-url}"/>
</java>
</target>
<target name="test-autodiscover" description="Runs the testing class for autodiscovery"
depends="jar">
<java classpathref="project.classpath"
classname="org.apache.commons.feedparser.locate.TestFeedLocator"
fork="true"
failonerror="true">
<sysproperty key="feedparser.home" value="${feedparser.home}"/>
</java>
</target>
<target name="test-probing" description="Runs the testing class for aggresive probing"
depends="jar">
<java classpathref="project.classpath"
classname="org.apache.commons.feedparser.test.TestProbeLocator"
fork="true"
failonerror="true">
<sysproperty key="feedparser.home" value="${feedparser.home}"/>
</java>
</target>
<target name="test" depends="jar,compile.test" description="Run junit tests." if="junit.available">
<junit printsummary="on"
fork="true"
filtertrace="true"
haltonfailure="false"
haltonerror="false">
<sysproperty key="feedparser.home" value="${feedparser.home}"/>
<classpath>
<path refid="project.classpath"/>
<pathelement location="${compile.dir}"/>
<pathelement location="${junit.dir}"/>
</classpath>
<batchtest todir="target/test-reports">
<fileset dir="${src.dir}/java">
<include name="**/Test*.java"/>
<exclude name="**/Test.java" />
</fileset>
<fileset dir="${src.dir}/test">
<include name="**/Test*.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="javadoc" depends="init">
<mkdir dir="docs/apidocs"/>
<!--
link="${javadoc.link}"
-->
<javadoc sourcepath="src/java"
classpathref="project.classpath"
packagenames="org.apache.commons.feedparser.*"
destdir="docs/apidocs"
author="true"
version="true"
use="true"
windowtitle="${product} ${version} API"
doctitle="${product} ${version} API"
bottom="Copyright &copy; ${year} Apache Software Foundation. All Rights Reserved.">
</javadoc>
</target>
<target name="help">
<echo message="U S A G E :"/>
<echo message=""/>
<echo message="[clean,clobber]"/>
<echo message="Delete old builds"/>
<echo message=""/>
<echo message="[compile]"/>
<echo message="Compiles the source tree"/>
<echo message=""/>
<echo message="[jakarta-feedparser.jar]"/>
<echo message="Generates a JAR file for the feed parser"/>
<echo message=""/>
<echo message="[run-example]"/>
<echo message="Runs the example feed parser class"/>
<echo message=""/>
<echo message="[debug-feed]"/>
<echo message="Debugs a single feed by attempting to retrieve it."/>
<echo message="To use:"/>
<echo message="ant debug-feed -Dfeed-url=http://www.someblog.com"/>
<echo message=""/>
<echo message="[test]"/>
<echo message="Runs all the JUnit testing classes"/>
<echo message="This target has an optional value. If run as follows:"/>
<echo message="ant test -Dtest.only.local=true"/>
<echo message="Then any tests that involve network traffic are _not_ run. "/>
<echo message="This is useful because the remote tests can take a long time "/>
<echo message="to run. By default we run remote tests."/>
<echo message=""/>
<echo message="[test-autodiscover]"/>
<echo message="Runs the testing class for autodiscovery"/>
<echo message=""/>
<echo message="[test-probing]"/>
<echo message="Runs the testing class for aggresive probing"/>
<echo message=""/>
<echo message="[javadoc]"/>
<echo message="Generates JavaDoc for this project"/>
<echo message=""/>
<echo message=""/>
<echo message="General information:"/>
<echo message="A file named 'build.properties' exists in this"/>
<echo message="directory that can be used to control the build process."/>
<echo message="The following attributes are available:"/>
<echo message=""/>
<echo message="feedparser.home"/>
<echo message="The full path to where the Jakarta Feed Parser is installed,"/>
<echo message="such as 'c:/jakarta/feedparser'; use forward slashes instead of"/>
<echo message="backslashes on Windows."/>
<echo message=""/>
<echo message="ext.lib.path"/>
<echo message="The file path location to where all of our external "/>
<echo message="JARs are located that are not bundled with the "/>
<echo message="Jakarta Feed Parser, such as junit.jar."/>
</target>
</project>