-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
76 lines (63 loc) · 2.43 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
<?xml version = '1.0' encoding = 'windows-1252'?>
<!-- Ant Buildfile for JSwingReader RSS NewsFeed Reader -->
<project name="JSwingReader" default="make" basedir=".">
<!-- Set the JDeveloper home directory and other things -->
<property file="${basedir}/build.properties" />
<property name="src.dir" value="${basedir}/src" />
<property name="dist.outdir" value="${basedir}/jars" />
<property name="name" value="jswingreader" />
<property name="Name" value="JSwingReader" />
<property name="version" value="0.3" />
<!--Set the classpath-->
<path id="classpath">
<pathelement location="${jdk.home}/jre/lib/rt.jar"/>
<pathelement location="classes"/>
<pathelement location="${jdev.home}/jdev/lib/jdev-rt.jar"/>
</path>
<!--Set the source path-->
<path id="srcpath">
<pathelement location="${basedir}/src"/>
</path>
<target name="init">
<tstamp/>
</target>
<target name="compile" depends="init">
<mkdir dir="${compile.outdir}"/>
<!--Compile Java source files-->
<javac destdir="${compile.outdir}" debug="on">
<classpath refid="classpath"/>
<src refid="srcpath"/>
<include name="org/robsite/jswingreader/**" />
</javac>
<!--Copy files to output directory-->
<copy todir="${compile.outdir}">
<fileset dir="${src.dir}" includes="**/*.gif"/>
</copy>
</target>
<target name="doc" depends="init">
<mkdir dir="${javadoc.outdir}"/>
<!--Create Javadoc-->
<javadoc sourcepathref="srcpath" classpathref="classpath" destdir="${javadoc.outdir}" version="false" author="false" additionalparam="-J-Xmx32m">
<package name="org.robsite.jswingreader.action"/>
<package name="org.robsite.jswingreader.ui"/>
<package name="org.robsite.jswingreader.model"/>
</javadoc>
</target>
<target name="clean">
<!--Delete output directories-->
<delete dir="${compile.outdir}"/>
<delete dir="${javadoc.outdir}"/>
</target>
<target name="jar" depends="compile">
<mkdir dir="${dist.outdir}"/>
<jar jarfile="${dist.outdir}/${name}-${version}.jar"
manifest="${src.dir}/meta-inf/jswingreader.mf">
<fileset dir="${compile.outdir}" >
<include name="**/*" />
</fileset>
</jar>
</target>
<target name="make" depends="compile"/>
<target name="rebuild" depends="clean,compile"/>
<target name="all" depends="compile,doc"/>
</project>