akarasulu 2003/11/03 14:03:53
Modified: merlin/repository/impl/src/java/org/apache/avalon/repository/impl
DefaultFactory.java
Log:
Changed name of the config bean property for the local
cache.
Revision Changes Path
1.3 +6 -6
avalon/merlin/repository/impl/src/java/org/apache/avalon/repository/impl/DefaultFactory.java
Index: DefaultFactory.java
===================================================================
RCS file:
/home/cvs/avalon/merlin/repository/impl/src/java/org/apache/avalon/repository/impl/DefaultFactory.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DefaultFactory.java 3 Nov 2003 18:54:19 -0000 1.2
+++ DefaultFactory.java 3 Nov 2003 22:03:53 -0000 1.3
@@ -86,14 +86,14 @@
public static final String DEFAULTS = "repository.properties" ;
/** single valued properties */
private static final String [] s_singles = {
- "local.repository.path",
+ "cache.dir",
"proxyHost",
"proxyPort",
"proxyUsername",
"proxyPassword"
} ;
/** the local repository base key where we download files into */
- public static final String LOCAL_BASE = s_singles[0] ;
+ public static final String CACHE_DIR = s_singles[0] ;
/** the proxy host key */
public static final String PROXY_HOST = s_singles[1] ;
/** the proxy port key */
@@ -168,7 +168,7 @@
* the values stored in the defaults.
*/
- l_config.setLocalRepository( l_defaults.getProperty( LOCAL_BASE ) ) ;
+ l_config.setCacheDir( l_defaults.getProperty( CACHE_DIR ) ) ;
try
{
@@ -217,7 +217,7 @@
public Repository create( RepositoryConfig a_config )
{
Repository l_repository = null ;
- File l_base = new File( a_config.getLocalRepository() ) ;
+ File l_base = new File( a_config.getCacheDir() ) ;
if ( null == a_config.getProxyContext() &&
null == a_config.getRemoteRepositories() )
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]