You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by br...@apache.org on 2004/03/02 12:26:21 UTC
cvs commit: maven/src/java/org/apache/maven/plugin PluginCacheManager.java
brett 2004/03/02 03:26:21
Modified: src/java/org/apache/maven/plugin Tag: MAVEN-1_0-BRANCH
PluginCacheManager.java
Log:
better debugging info
Revision Changes Path
No revision
No revision
1.16.4.6 +13 -6 maven/src/java/org/apache/maven/plugin/PluginCacheManager.java
Index: PluginCacheManager.java
===================================================================
RCS file: /home/cvs/maven/src/java/org/apache/maven/plugin/PluginCacheManager.java,v
retrieving revision 1.16.4.5
retrieving revision 1.16.4.6
diff -u -r1.16.4.5 -r1.16.4.6
--- PluginCacheManager.java 1 Mar 2004 22:36:38 -0000 1.16.4.5
+++ PluginCacheManager.java 2 Mar 2004 11:26:21 -0000 1.16.4.6
@@ -157,15 +157,22 @@
private Properties loadProperties(File file)
{
Properties properties = new Properties();
- try
+ if ( file.exists() )
{
- FileInputStream stream = new FileInputStream(file);
- properties.load(stream);
- stream.close();
+ try
+ {
+ FileInputStream stream = new FileInputStream(file);
+ properties.load(stream);
+ stream.close();
+ }
+ catch (IOException e)
+ {
+ log.debug("IOException reading cache", e);
+ }
}
- catch (IOException e)
+ else
{
- log.debug("IOException reading cache, possibly not there", e);
+ log.debug( "Cache file does not exist, skipping: " + file );
}
return properties;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org