avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject cvs commit: avalon/repository/cli/src/java/org/apache/avalon/repository/cli Main.java
Date Thu, 19 Feb 2004 07:33:04 GMT
mcconnell    2004/02/18 23:33:04

  Modified:    repository/cli/src/java/org/apache/avalon/repository/cli
                        Main.java
  Log:
  Sync. with initial ciontext factory.
  
  Revision  Changes    Path
  1.4       +6 -5      avalon/repository/cli/src/java/org/apache/avalon/repository/cli/Main.java
  
  Index: Main.java
  ===================================================================
  RCS file: /home/cvs/avalon/repository/cli/src/java/org/apache/avalon/repository/cli/Main.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Main.java	17 Feb 2004 11:06:16 -0000	1.3
  +++ Main.java	19 Feb 2004 07:33:04 -0000	1.4
  @@ -42,7 +42,7 @@
   import org.apache.avalon.repository.provider.InitialContext;
   import org.apache.avalon.repository.provider.Factory;
   import org.apache.avalon.repository.RepositoryException;
  -import org.apache.avalon.repository.main.DefaultInitialContext;
  +import org.apache.avalon.repository.main.DefaultInitialContextFactory;
   import org.apache.avalon.repository.main.DefaultBuilder;
   import org.apache.avalon.repository.meta.ArtifactDescriptor;
   import org.apache.avalon.repository.util.RepositoryUtils;
  @@ -191,9 +191,10 @@
                   ClassLoader parent = Main.class.getClassLoader();
                   String[] hosts = getHostsPath( line );
                   
  -                InitialContext context = 
  -                   new DefaultInitialContext( 
  -                     dir, parent, artifact, cache, hosts );
  +                DefaultInitialContextFactory factory = 
  +                  new DefaultInitialContextFactory( "avalon", dir );
  +                factory.setCacheDirectory( cache );
  +                factory.setHosts( hosts );
   
                   //
                   // process the commandline and do the real work
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@avalon.apache.org
For additional commands, e-mail: cvs-help@avalon.apache.org


Mime
View raw message