Skip to Content.
Sympa Menu

notify-dpml - svn commit: r1707 - development/main/home/transit/handler/src/main/net/dpml/transit/artifact

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell AT netcompartner.com
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r1707 - development/main/home/transit/handler/src/main/net/dpml/transit/artifact
  • Date: Thu, 03 Feb 2005 08:01:40 +0100

Author: mcconnell
Date: Thu Feb 3 08:01:39 2005
New Revision: 1707

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/NetworkLoader.java
Log:
Fix a bug in the NetworkLoader - reference to getProtocol( "file:" ) changed
to getProtocol( "file" ).

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 08:01:39 2005
@@ -225,8 +225,10 @@
{
return;
}
+
NetworkLoader loader = new NetworkLoader();
URL url = createRemoteUrl( artifact );
+
URLConnection connection;
synchronized ( m_connections )
{
@@ -250,6 +252,7 @@
boolean cached = true; // checkstyle
}
}
+
boolean timestamping = ( m_policy == Policy.TIMESTAMP );
loader.loadResource( url, connection, destFile, timestamping );
}

Modified:
development/main/home/transit/handler/src/main/net/dpml/transit/artifact/NetworkLoader.java
==============================================================================
---
development/main/home/transit/handler/src/main/net/dpml/transit/artifact/NetworkLoader.java
(original)
+++
development/main/home/transit/handler/src/main/net/dpml/transit/artifact/NetworkLoader.java
Thu Feb 3 08:01:39 2005
@@ -97,7 +97,7 @@
//

String protocol = url.getProtocol();
- if( timestamping && protocol.equals( "file:" ) )
+ if( timestamping && protocol.equals( "file" ) )
{
try
{
@@ -105,7 +105,6 @@
File sourceFile = new File( sourcePath );
if( destination.exists() )
{
-
if( destination.lastModified() >=
sourceFile.lastModified() )
{
return destination.toURL();



  • svn commit: r1707 - development/main/home/transit/handler/src/main/net/dpml/transit/artifact, mcconnell, 02/03/2005

Archive powered by MHonArc 2.6.24.

Top of Page