summaryrefslogtreecommitdiff
path: root/fetch.xml
diff options
context:
space:
mode:
authorJesse N. Glick <jglick@apache.org>2010-07-06 17:26:04 +0000
committerJesse N. Glick <jglick@apache.org>2010-07-06 17:26:04 +0000
commitcb33b4f823ea229a33e8b8683db10915c170cfed (patch)
tree6d9bc317af0750ea0488f4be5a1c04b1a63ffe57 /fetch.xml
parent8de81028e45c54b750a0024bf64eaa0ea9e369ea (diff)
downloadant-cb33b4f823ea229a33e8b8683db10915c170cfed.tar.gz
Hackish way of making NetRexxC.jar available to the Maven build without using a public repo.
Easy enough to run fetch.xml during Maven build, but complicated by fact that system-scope dependencies are checked for existence before plugins get a chance to run. Also complicated a bit by the fact that adding a plugin dependency to maven-antrun-plugin (on commons-net:commons-net:1.4.0) does not seem to suffice to let Ant load the <ftp> task (which does not support nested <classpath>). git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@960950 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fetch.xml')
-rw-r--r--fetch.xml16
1 files changed, 14 insertions, 2 deletions
diff --git a/fetch.xml b/fetch.xml
index c5e0c7795..d0628d283 100644
--- a/fetch.xml
+++ b/fetch.xml
@@ -224,6 +224,7 @@ Set -Ddest=LOCATION on the command line
depends="init">
<f2 project="commons-net" />
<f2 project="com.jcraft" archive="jsch"/>
+ <available property="have.commons.net" classname="org.apache.commons.net.ftp.FTPClientConfig"/>
</target>
<target name="regexp"
@@ -309,11 +310,11 @@ Set -Ddest=LOCATION on the command line
<f2 project="com.sun.media" archive="jai-codec" repository="http://repository.jboss.org/maven2"/>
</target>
- <target name="netrexx" depends="init-no-m2,-setup-temp-cache,networking,-fetch-netrexx,-cleanup-temp-cache"
+ <target name="netrexx" depends="init-no-m2,-setup-temp-cache,networking,-fetch-netrexx,-fetch-netrexx-no-commons-net,-cleanup-temp-cache"
description="load NetRexx compiler" />
<target name="-fetch-netrexx" depends="-setup-temp-cache"
- description="FTPs NetRexx compiler from IBM site">
+ description="FTPs NetRexx compiler from IBM site" if="have.commons.net">
<get-ftp-file host="ftp.software.ibm.com" remotedir="/software/awdtools/netrexx"
filename="NetRexx.zip" localdir="${temp.dir}" />
<copy todir="${dest.dir}" flatten="true">
@@ -324,6 +325,17 @@ Set -Ddest=LOCATION on the command line
</copy>
</target>
+ <target name="-fetch-netrexx-no-commons-net" depends="-setup-temp-cache"
+ description="FTPs NetRexx compiler from IBM site" unless="have.commons.net">
+ <get src="ftp://ftp.software.ibm.com/software/awdtools/netrexx/NetRexx.zip" dest="${temp.dir}/NetRexx.zip" skipexisting="true"/>
+ <copy todir="${dest.dir}" flatten="true">
+ <zipfileset src="${temp.dir}/NetRexx.zip">
+ <include name="NetRexx\lib\NetRexxC.jar" />
+ <include name="NetRexx\browse\license.txt" />
+ </zipfileset>
+ </copy>
+ </target>
+
<target name="all"
description="load all the libraries (except jython)"
depends="logging,junit,xml,networking,regexp,antlr,bcel,jdepend,bsf,debugging,script,javamail,jspc,jai,netrexx" />