mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Jean-Noel Rouvignac
02.59.2013 ce873c05a4624438f19ab8776df230153c034722
(CR-1489) Build offline with Ivy

Adding back offline building despite checking for the latest snapshot jars.

Example command line to invoke for building offline:
ant resolve -Dbuild.offline=
2 files modified
20 ■■■■■ changed files
opends/build.xml 9 ●●●●● patch | view | raw | blame | history
opends/ivysettings.xml 11 ●●●● patch | view | raw | blame | history
opends/build.xml
@@ -58,6 +58,15 @@
  <property name="build.debuglevel"    value="lines,vars,source"       />
  <property name="ivy.install.version" value="2.3.0"/>
  <property name="ivy.jar.file"        value="${ext.dir}/ivy.jar"/>
  <!-- example command line to invoke for building offline:
    ant resolve -Dbuild.offline=
  -->
  <condition property="ivy.checkmodified" value="false" else="true">
    <isset property="build.offline"/>
  </condition>
  <condition property="ivy.changingpattern" value="" else=".*-SNAPSHOT">
    <isset property="build.offline"/>
  </condition>
  <!-- Properties for build tools                                   -->
  <property name="buildtools.src.dir" location="src/build-tools" />
opends/ivysettings.xml
@@ -28,18 +28,13 @@
<ivy-settings>
  <settings defaultResolver="main" />
  <resolvers>
    <!-- FIXME Not sure whether checkmodified is useful. Maybe not. -->
    <!-- FIXME This change does not work when offline.
         Check this link to see how to solve offline mode:
         http://svn.apache.org/viewvc?view=revision&revision=1203477
    -->
    <chain name="main" checkmodified="true" changingPattern=".*-SNAPSHOT">
    <chain name="main" checkmodified="${ivy.checkmodified}" changingPattern="${ivy.changingpattern}">
      <!-- for forgerock dependencies -->
      <ibiblio name="forgerock"
               m2compatible="true"
               root="http://maven.forgerock.org/repo/repo"
               checkmodified="true"
               changingPattern=".*-SNAPSHOT"
               checkmodified="${ivy.checkmodified}"
               changingPattern="${ivy.changingpattern}"
               />
      <!-- for nearly everything else -->
      <ibiblio name="central"