Ant get task throws "get doesn't support nested resources element" error
Posted
by David Corley
on Stack Overflow
See other posts from Stack Overflow
or by David Corley
Published on 2010-03-19T16:50:12Z
Indexed on
2010/03/19
16:51 UTC
Read the original article
Hit count: 1101
The following ant xml should work according to documentation, but does not. Can anyone tell me if I'm doing something wrong. The get task should support the nested "resources" element in Ant 1.7.1 which is the version I'm using:
--><target name="setup">
<tstamp/>
<!-- set up work areas -->
<!--<taskdef name="ccmutil" classname="com.allfinanz.framework.tools.CCMUtil" classpath="\\Abate\Data\Build_Lib\Ivy\com.allfinanz\ccmutil\1.0\ccmutil-1.0.jar"/>-->
<!-- 1st one is special, also sets ${project_wa} -->
<!--<ccmutil file="${ant.file}" projects="framework, xpbuw, xpb, bil"/>-->
<property name="framework_wa" value="../../../framework"/>
<property name="xpbuw_wa" value="../../../xpbuw"/>
<property name="xpb_wa" value="../../../xpb"/>
<property name="bil_wa" value="../.."/>
<!-- Create properties to hold the build values -->
<property name="out" value="${user.dir}"/>
<!-- This may be overridden from the command line -->
<property name="locale" value="us"/>
<!-- set contextRoot up as a property - this mean that it can be overwritten from the command line e.g.: ant -DcontextRoot=xpertBridge. -->
<property name="contextRoot" value="xpertBridge"/>
<property name="build_dir" value="${out}/${release}/build"/>
<property name="distrib_dir" value="${out}/${release}/distrib"/>
<property name="build.number" value="-1"/>
<!-- Download dependencies from repo.fms.allfinanz.com-->
<get dest="${lib}">
<resources>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=central&g=soap&a=soap&v=2.3.1&e=jar"/>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=JBOSS&g=apache-fileupload&a=commons-fileupload&v=1.0&e=jar"/>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=thirdparty&g=regexp&a=regexp&v=1.1&e=jar"/>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=thirdparty&g=javax.mail&a=mail&v=1.2&e=jar"/>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=thirdparty&g=com.ibm.ws.webservices&a=webservices.thinclient&v=6.1.0&e=jar"/>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=thirdparty&g=avalon-framework&a=avalon-framework&v=4.2.0&e=jar"/>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=thirdparty&g=jimi&a=jimi&v=1.0&e=jar"/>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=thirdparty&g=batik&a=batik-all&v=1.6&e=jar"/>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=thirdparty&g=bsf&a=bsf&v=2.3.0&e=jar"/>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=thirdparty&g=rhino&a=js&v=1.5R3&e=jar"/>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=central&g=commons-io&a=commons-io&v=1.1&e=jar"/>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=central&g=commons-logging&a=commons-logging&v=1.0.4&e=jar"/>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=thirdparty&g=xmlgraphics&a=commons&v=1.0&e=jar"/>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=thirdparty&g=barcode4j&a=barcode4j&v=trunkBIL&e=jar"/>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=thirdparty&g=com.ibm&a=fmcojagt&v=6.1&e=jar"/>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=thirdparty&g=com.allfinanz&a=ejbserversupport&v=1.0&e=jar"/>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=thirdparty&g=com.sun&a=jce&v=1.0&e=zip"/>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=thirdparty&g=ssce&a=ssce&v=5.8&e=jar"/>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=thirdparty&g=com.ibm&a=mq&v=5.1&e=jar"/>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=thirdparty&g=com.ibm&a=mqjms&v=5.1&e=jar"/>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=thirdparty&g=NetServerRemote&a=NetServerRemote&v=1.0&e=jar"/>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=thirdparty&g=NetServerRMI&a=NetServerRMI&v=1.0&e=jar"/>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=thirdparty&g=jwsdp&a=saaj-api&v=1.5&e=jar&c=api"/>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=thirdparty&g=jwsdp&a=saaj-impl&v=1.5&e=jar&c=impl"/>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=thirdparty&g=org.apache.xmlgraphics&a=fop&v=0.92b&e=jar"/>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=thirdparty&g=xerces&a=dom3-xml-apis&v=1.0&e=jar"/>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=thirdparty&g=org.apache&a=derbynet&v=10.0.2&e=jar"/>
<url url="http://repo.fms.allfinanz.com/service/local/artifact/maven/redirect?r=thirdparty&g=com.sun&a=jsse&v=1.0&e=jar"/>
</resources>
</get>
</target>
© Stack Overflow or respective owner