notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
svn commit: r1706 - in development/main/home: . transit/handler/src/main/net/dpml/transit/artifact
- From: mcconnell AT netcompartner.com
- To: notify-dpml AT lists.ibiblio.org
- Subject: svn commit: r1706 - in development/main/home: . transit/handler/src/main/net/dpml/transit/artifact
- Date: Thu, 03 Feb 2005 07:18:46 +0100
Author: mcconnell
Date: Thu Feb 3 07:18:46 2005
New Revision: 1706
Modified:
development/main/home/standard.xml
development/main/home/transit/handler/src/main/net/dpml/transit/artifact/ClassicResourceHost.java
development/main/home/transit/handler/src/main/net/dpml/transit/artifact/FileCacheHandler.java
Log:
Update handling to include a local repository containing a requested resource
in the potential first host selection.
Modified: development/main/home/standard.xml
==============================================================================
--- development/main/home/standard.xml (original)
+++ development/main/home/standard.xml Thu Feb 3 07:18:46 2005
@@ -20,6 +20,8 @@
<project name="standard">
+ <tstamp/>
+
<!--
Environment setup.
-->
Modified:
development/main/home/transit/handler/src/main/net/dpml/transit/artifact/ClassicResourceHost.java
==============================================================================
---
development/main/home/transit/handler/src/main/net/dpml/transit/artifact/ClassicResourceHost.java
(original)
+++
development/main/home/transit/handler/src/main/net/dpml/transit/artifact/ClassicResourceHost.java
Thu Feb 3 07:18:46 2005
@@ -250,7 +250,7 @@
boolean cached = true; // checkstyle
}
}
- boolean timestamping = m_policy == Policy.TIMESTAMP;
+ boolean timestamping = ( m_policy == Policy.TIMESTAMP );
loader.loadResource( url, connection, destFile, timestamping );
}
}
@@ -279,6 +279,10 @@
{
return true;
}
+ else if( "file".equals( m_baseUrl.getProtocol() ) )
+ {
+ return checkAtServer( artifact );
+ }
else if( knownOnly )
{
return checkKnown( artifact );
Modified:
development/main/home/transit/handler/src/main/net/dpml/transit/artifact/FileCacheHandler.java
==============================================================================
---
development/main/home/transit/handler/src/main/net/dpml/transit/artifact/FileCacheHandler.java
(original)
+++
development/main/home/transit/handler/src/main/net/dpml/transit/artifact/FileCacheHandler.java
Thu Feb 3 07:18:46 2005
@@ -119,6 +119,7 @@
File destination = new File( m_cacheDir, path );
boolean exist = destination.exists();
ResourceHost known = findKnownGroupHost( artifact, destination );
+
boolean success = download( known, artifact, destination );
if( !success )
{
- svn commit: r1706 - in development/main/home: . transit/handler/src/main/net/dpml/transit/artifact, mcconnell, 02/03/2005
Archive powered by MHonArc 2.6.24.