http://wiki3.caucho.com/api.php?action=feedcontributions&user=Babo&feedformat=atom
Resin 3.0 - User contributions [en]
2024-03-29T14:40:35Z
User contributions
MediaWiki 1.18.0
http://wiki3.caucho.com/Ivy
Ivy
2008-12-13T00:07:09Z
<p>Babo: /* build.xml */ Make the default target valid.</p>
<hr />
<div>== Step by Step ==<br />
<br />
''[Tested with Resin 3.1.5 and Ivy 2.0]''<br />
<br />
<ol><br />
<li>Download Ivy from http://ant.apache.org/ivy<br />
<li>Install following the directions, i.e. copy the ivy jars to $ANT_HOME/lib, usually something like /opt/ant/lib or /usr/share/ant/lib<br />
<li>Create a new project my-project and my-project/build.xml (see below for the build.xml)<br />
<li>Create an ivy.xml dependencies file in my-project/ivy.xml<br />
<li>Create an ivysettings.xml file in my-project/ivysettings.xml (to point to the Caucho repository)<br />
</ol><br />
<br />
The update task will download the Resin jars and their dependencies into my-project/lib. <br />
<br />
=== build.xml ===<br />
<br />
<code><pre><br />
<project name="my-project" default="update" basedir="."<br />
xmlns:ivy="antlib:org.apache.ivy.ant"><br />
<br />
<target name="update"><br />
<ivy:retrieve/><br />
</target><br />
<br />
</project><br />
</pre></code><br />
<br />
=== ivy.xml ===<br />
<br />
<code><pre><br />
<ivy-module version="2.0"><br />
<info organisation="com.foo" module="test"/><br />
<br />
<dependencies><br />
<dependency org="com.caucho" name="resin" rev="3.1.5"/><br />
</dependencies><br />
</ivy-module><br />
</pre></code><br />
<br />
=== ivysettings.xml ===<br />
<br />
<code><pre><br />
<ivysettings><br />
<settings defaultResolver="default"/><br />
<br />
<include url="${ivy.default.settings.dir}/ivysettings-public.xml"/><br />
<include url="${ivy.default.settings.dir}/ivysettings-shared.xml"/><br />
<include url="${ivy.default.settings.dir}/ivysettings-local.xml"/><br />
<include url="${ivy.default.settings.dir}/ivysettings-main-chain.xml"/><br />
<br />
<resolvers><br />
<url name="caucho" m2compatible="true"><br />
<ivy pattern="http://caucho.com/m2/com/caucho/[module]/[revision]/ivy-[revision].xml"/><br />
<artifact pattern="http://caucho.com/m2/com/caucho/[module]/[revision]/[artifact]-[revision].[ext]"/><br />
</url><br />
<br />
<chain name="default" returnFirst="true"><br />
<resolver ref="local"/><br />
<resolver ref="main"/><br />
<resolver ref="caucho"/><br />
</chain><br />
</resolvers><br />
</ivysettings><br />
</pre></code></div>
Babo