mcconnell 2003/11/23 12:36:06
Modified: repository README.TXT
Log:
Bring readme up-to-date.
Revision Changes Path
1.6 +2 -4 avalon-sandbox/repository/README.TXT
Index: README.TXT
===================================================================
RCS file: /home/cvs/avalon-sandbox/repository/README.TXT,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- README.TXT 23 Nov 2003 15:24:12 -0000 1.5
+++ README.TXT 23 Nov 2003 20:36:06 -0000 1.6
@@ -75,25 +75,23 @@
String[] bootstrap = new String[]{ "http://dpml.net" };
String[] hosts = new String[]{ "http://dpml.net", "http://ibiblio.org/maven" };
RepositoryFactory factory = new InitialRepositoryFactory( hosts );
-
DefaultRepositoryContext context =
new DefaultRepositoryContext( factory.getDefaultContext() );
context.setCacheDir( ".cache" );
context.setRemoteRepositoryUrls( hosts ) ;
-
Repository repository = factory.create( context ) ;
Example retrival of a artifact:
Artifact artifact =
- MavenArtifactFactory.createJarArtifact(
+ ClassicArtifact.createJarArtifact(
"avalon-framework", "avalon-framework-api", "4.1.5" );
URL local = repository.getResource( artifact );
Example creation of a classloader:
Artifact artifact =
- MavenArtifactFactory.createJarArtifact(
+ ClassicArtifact.createJarArtifact(
"merlin", "merlin-kernel-impl", "3.2.1" );
ClassLoader loader = repository.getClassLoader( artifact );
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]