<ivy:retrieve pattern="${lib.dir}/[artifact]-[revision].[ext]"
conf="runtime" type="jar"/>Make sure you clear the lib dir. Or add sync="true". It should work the same in version 2 as well. On Tue, Mar 22, 2011 at 11:32 AM, Richard_Senior <[email protected]>wrote: > > > Steve Miller-26 wrote: > > > > Try <ivy:retrieve ... type="jar"/> > > > > Thanks for the quick response! > > Still not working.. it's putting everything in ./lib in the full repository > structure of [org].... complete with all ivy's. > > I think there's a thing called ivyPattern and artifactPattern you can use > in > the cache settings but I've tried that and that doesn't work either! > > Build script as follows : > > <?xml version="1.0"?> > <project name="core" default="build" basedir="." > xmlns:bundlor="antlib:com.springsource.bundlor.ant" > xmlns:ivy="antlib:org.apache.ivy.ant"> > <property name="workspace.dir" location="../"/> > <property name="lib.dir" location="./lib"/> > <property name="lib.dir.buildtime" location="${lib.dir}/buildtime"/> > <property name="lib.dir.buildtime.ivy" > location="${lib.dir.buildtime}/ivy"/> > <property name="ivy.version" value="2.0.0-beta1"/> > > <target name="build" depends="ivy_bootstrap" /> > > <target name="ivy_bootstrap"> > <mkdir dir="${lib.dir.buildtime.ivy}"/> > <echo message="getting ivy from maven repository"/> > <get > src=" > http://repo1.maven.org/maven2/org/apache/ivy/ivy/${ivy.version}/ivy-${ivy.version}.jar > " > dest="${lib.dir.buildtime.ivy}" usetimestamp="true"/> > <path id="ivy.lib.path"> > <fileset dir="${lib.dir.buildtime.ivy}" > includes="*.jar"/> > </path> > <taskdef resource="org/apache/ivy/ant/antlib.xml" > uri="antlib:org.apache.ivy.ant" classpathref="ivy.lib.path"/> > <ivy:retrieve type="jar"/> > </target> > > </project> > > -- > View this message in context: > http://old.nabble.com/Just-the-artifacts...-tp31211016p31211108.html > Sent from the ivy-user mailing list archive at Nabble.com. > >
