Date: Sun, 01 Oct 2006 16:02:20 +0400 From: Sergey Matveychuk <sem@FreeBSD.org> To: freebsd-java@freebsd.org Subject: ant try to fetch jar files for dependencies Message-ID: <451FAE4C.8080205@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
Hi.
I'm porting a java library where build.xml contains the lines:
<target name="init" description="o Initializes some properties">
<mkdir dir="${libdir}">
</mkdir>
<condition property="noget">
<equals arg2="only" arg1="${build.sysclasspath}">
</equals>
</condition>
...
</target>
...
<target name="get-dep-javamail.jar" description="o Download the
dependency : javamail.jar" unless="javamail.jar"
depends="init,setProxy,noProxy,get-custom-dep-javamail.jar">
<mkdir dir="${libdir}/javamail/jars/">
</mkdir>
<get dest="${libdir}/javamail/jars/javamail-1.3.3.jar"
usetimestamp="true" ignoreerrors="true"
src="http://www.ibiblio.org/maven/javamail/jars/javamail-1.3.3.jar">
</get>
</target>
...
<target name="get-deps" unless="noget"
depends="get-dep-javamail.jar,get-dep-activation.jar,get-dep-dumbster.jar">
</target>
So ant tries to fetch jar files (btw. in a wrong place). I dislike it
and I want to disable it. But when I run: ant -Dnoget="" (or anything
inside "") it does not work and ant still tries to fetch the files.
Why passing `noget' property to ant does not work?
--
Dixi.
Sem.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?451FAE4C.8080205>
