From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
(build.xml: Make the default target valid.)
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
== Step by Step ==
== Step by Step ==
''[Tested with Resin 3.1.5 and Ivy 2.0]''
Line 14: Line 16:
<project name="my-project" default="compile" basedir="."
<project name="my-project" default="update" basedir="."
Line 22: Line 24:
=== ivy.xml ===
=== ivy.xml ===

Latest revision as of 17:07, 12 December 2008


[edit] Step by Step

[Tested with Resin 3.1.5 and Ivy 2.0]

  1. Download Ivy from http://ant.apache.org/ivy
  2. 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
  3. Create a new project my-project and my-project/build.xml (see below for the build.xml)
  4. Create an ivy.xml dependencies file in my-project/ivy.xml
  5. Create an ivysettings.xml file in my-project/ivysettings.xml (to point to the Caucho repository)

The update task will download the Resin jars and their dependencies into my-project/lib.

[edit] build.xml

<project name="my-project" default="update" basedir="."

  <target name="update">


[edit] ivy.xml

<ivy-module version="2.0">
  <info organisation="com.foo" module="test"/>

    <dependency org="com.caucho" name="resin" rev="3.1.5"/>

[edit] ivysettings.xml

  <settings defaultResolver="default"/>

  <include url="${ivy.default.settings.dir}/ivysettings-public.xml"/>
  <include url="${ivy.default.settings.dir}/ivysettings-shared.xml"/>
  <include url="${ivy.default.settings.dir}/ivysettings-local.xml"/>
  <include url="${ivy.default.settings.dir}/ivysettings-main-chain.xml"/>

     <url name="caucho" m2compatible="true">
      <ivy pattern="http://caucho.com/m2/com/caucho/[module]/[revision]/ivy-[revision].xml"/>
      <artifact pattern="http://caucho.com/m2/com/caucho/[module]/[revision]/[artifact]-[revision].[ext]"/>
    <chain name="default" returnFirst="true">
      <resolver ref="local"/>
      <resolver ref="main"/>
      <resolver ref="caucho"/>
Personal tools