changeset 53:7066d68bcb47

enable resolve logging. Fixed changing pattern. set ttl on snapshot cache. Allow forcemode to be disabled.
author smith@nwoca.org
date Sat, 18 Jun 2011 20:55:36 -0400
parents f379a8a13d53
children a435af436c95
files ivy-ant.xml ssdt.default.ivy.settings.xml
diffstat 2 files changed, 13 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/ivy-ant.xml	Fri Jun 17 16:17:58 2011 -0400
+++ b/ivy-ant.xml	Sat Jun 18 20:55:36 2011 -0400
@@ -75,7 +75,7 @@
             target.
         -->
         <ivy:settings  file="ivysettings.xml"/>
-        <ivy:resolve log="download-only" file="ivy.xml" />
+        <ivy:resolve file="ivy.xml" />
         <ivy:artifactproperty conf="*"
            name="ivydeps.[organisation]-[module]"
            value="[revision]"/>
--- a/ssdt.default.ivy.settings.xml	Fri Jun 17 16:17:58 2011 -0400
+++ b/ssdt.default.ivy.settings.xml	Sat Jun 18 20:55:36 2011 -0400
@@ -4,11 +4,14 @@
 -->
 <ivysettings>
     <settings defaultResolver="default"/>
-    <caches defaultCacheDir="${user.home}/.ivy2/cache" useOrigin="true">
-        <cache name="snapshot-cache" basedir="${user.home}/.ivy2/snapshot-cache"/>
+    <caches defaultCacheDir="${user.home}/.ivy2/cache" useOrigin="true" >
+        <cache name="snapshot-cache" basedir="${user.home}/.ivy2/snapshot-cache" defaultTTL="5m">
+            <ttl revision="latest.integration" duration="10s"/>
+        </cache>
     </caches>
     <property name="ivy.local.default.root" value="${user.home}/.ivy2/local" override="false"/>
-    <property name="ivy.default.ivy.user.dir" value="${user.home}/.ivy2" override="false"/>
+    <property name="ivy.default.ivy.user.dir" value="${user.home}/.ivy2" override="false"/>   
+    <property name="ivy.local.force.mode" value="true" override="false"/>
     <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"/>
@@ -16,22 +19,22 @@
     <include url="${ivy.default.settings.dir}/ivysettings-default-chain.xml"/>
     <resolvers >
         <chain name="default">
-            <filesystem name="local" checkmodified="true" force="true" local="true" changingPattern=".*SNAPSHOT" >
+            <filesystem name="local" checkmodified="true" force="${ivy.local.force.mode}" local="true" changingPattern=".*SNAPSHOT" >
                 <ivy pattern="${ivy.local.default.root}/${ivy.local.default.ivy.pattern}" />
                 <artifact pattern="${ivy.local.default.root}/${ivy.local.default.artifact.pattern}" />
             </filesystem>
      
-            <url name="ssdt-snapshots" changingMatcher=".*SNAPSHOT" checkmodified="true" m2compatible="true" cache="snapshot-cache">
+            <url name="ssdt-snapshots" changingPattern=".*SNAPSHOT" checkmodified="true" m2compatible="true" cache="snapshot-cache">
                 <artifact pattern="http://repos.ssdt.nwoca.org/artifactory/libs-snapshots/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]" />
                 <ivy pattern="http://repos.ssdt.nwoca.org/artifactory/libs-snapshots/[organisation]/[module]/ivy-[revision].xml" />
             </url>            
             <ibiblio name="ssdt-repo" m2compatible="true" root="http://repos.ssdt.nwoca.org/artifactory/ssdt-repo" />                   
            
         </chain>
-            <filesystem name="publish-only" local="true"  >
-                <ivy pattern="${ivy.default.ivy.user.dir}/publish/${ivy.local.default.ivy.pattern}" />
-                <artifact pattern="${ivy.default.ivy.user.dir}/publish/${ivy.local.default.artifact.pattern}" />
-            </filesystem>
+        <filesystem name="publish-only" local="true">
+            <ivy pattern="${ivy.default.ivy.user.dir}/publish/${ivy.local.default.ivy.pattern}" />
+            <artifact pattern="${ivy.default.ivy.user.dir}/publish/${ivy.local.default.artifact.pattern}" />
+        </filesystem>
      
     </resolvers>
 </ivysettings>