Don't freak out if we don't have the Snark library. We'll sort this out more

nicely later.
This commit is contained in:
Michael Bayne
2006-07-13 18:52:58 +00:00
parent 3c9b29adcb
commit 72ef40f297
2 changed files with 17 additions and 6 deletions
+13 -2
View File
@@ -24,8 +24,18 @@
<pathelement location="${deploy.dir}/classes"/>
</path>
<!-- checks the availability of certain libraries -->
<target name="check-available">
<available property="snark.present"
classname="org.klomp.snark.Snark" classpathref="clazzpath"/>
<echo message="Have Snark: ${snark.present}"/>
<condition property="build.torrent">
<isset property="snark.present"/>
</condition>
</target>
<!-- prepares the application directories -->
<target name="prepare">
<target name="prepare" depends="check-available">
<mkdir dir="${deploy.dir}"/>
<mkdir dir="${deploy.dir}/classes"/>
<mkdir dir="${javadoc.dir}"/>
@@ -48,6 +58,7 @@
debug="on" optimize="off" deprecation="on"
classpathref="clazzpath" includeAntRuntime="no"
source="1.5" target="1.5">
<exclude name="**/TorrentDownloader*" unless="build.torrent"/>
<compilerarg value="-Xlint:unchecked"/>
</javac>
</target>
@@ -62,7 +73,7 @@
bottom="${copy.pre} ${copyright.holder} ${copy.post}"
destdir="${javadoc.dir}">
<classpath refid="clazzpath"/>
<link href="http://www.samskivert.com/code/samskivert/samskivert/docs/api"/>
<link href="http://samskivert.com/code/samskivert/samskivert/docs/api"/>
<link href="http://java.sun.com/j2se/1.5/docs/api/"/>
</javadoc>
</target>
@@ -506,11 +506,11 @@ public abstract class Getdown extends Thread
// Torrent downloading is disabled by default until the kinks are out
Downloader dl;
if (false) {
dl = new TorrentDownloader(resources, obs);
} else {
// if (false) {
// dl = new TorrentDownloader(resources, obs);
// } else {
dl = new HTTPDownloader(resources, obs);
}
// }
dl.start();
// now wait for it to complete