maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From schu...@apache.org
Subject maven git commit: [MNG-5629] ClosedChannelException from DefaultUpdateCheckManager.read
Date Fri, 11 Dec 2015 21:39:27 GMT
Repository: maven
Updated Branches:
  refs/heads/master 7cd7bd864 -> 792a9b8ea


[MNG-5629] ClosedChannelException from DefaultUpdateCheckManager.read

o Updated to support shrinking of tracking files.


Project: http://git-wip-us.apache.org/repos/asf/maven/repo
Commit: http://git-wip-us.apache.org/repos/asf/maven/commit/792a9b8e
Tree: http://git-wip-us.apache.org/repos/asf/maven/tree/792a9b8e
Diff: http://git-wip-us.apache.org/repos/asf/maven/diff/792a9b8e

Branch: refs/heads/master
Commit: 792a9b8eaae2345b6dd0429d8b90d0358f48fa24
Parents: 7cd7bd8
Author: Christian Schulte <schulte@apache.org>
Authored: Fri Dec 11 22:36:27 2015 +0100
Committer: Christian Schulte <schulte@apache.org>
Committed: Fri Dec 11 22:36:27 2015 +0100

----------------------------------------------------------------------
 .../apache/maven/repository/legacy/DefaultUpdateCheckManager.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/maven/blob/792a9b8e/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java
----------------------------------------------------------------------
diff --git a/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java
b/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java
index 2c26f71..4839d68 100644
--- a/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java
+++ b/maven-compat/src/main/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java
@@ -259,7 +259,7 @@ public class DefaultUpdateCheckManager
                 }
 
                 getLogger().debug( "Writing resolution-state to: " + touchfile );
-                channel.position( 0 );
+                channel.truncate( 0 );
                 props.store( Channels.newOutputStream( channel ), "Last modified on: " +
new Date() );
 
                 lock.release();


Mime
View raw message