mcconnell 2003/12/14 01:50:10
Modified: repository/main/src/java/org/apache/avalon/repository/main
DefaultBuilder.java
Log:
Move artifact creator to a static utility method.
Revision Changes Path
1.9 +2 -25
avalon/repository/main/src/java/org/apache/avalon/repository/main/DefaultBuilder.java
Index: DefaultBuilder.java
===================================================================
RCS file:
/home/cvs/avalon/repository/main/src/java/org/apache/avalon/repository/main/DefaultBuilder.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- DefaultBuilder.java 13 Dec 2003 18:21:57 -0000 1.8
+++ DefaultBuilder.java 14 Dec 2003 09:50:10 -0000 1.9
@@ -105,7 +105,7 @@
* @param key a property key containing an artifact specification
* @return the artifact reference
*/
- protected static Artifact createImplementationArtifact(
+ public static Artifact createImplementationArtifact(
ClassLoader classloader, File base, String resource, String key ) throws
Exception
{
String spec =
@@ -182,29 +182,6 @@
//-----------------------------------------------------------
// constructors
//-----------------------------------------------------------
-
- /**
- * Creates a DefaultBuilder for a specific target application.
- *
- * @param context the initial repository context
- * @param classloader the parent classloader
- * @param resource the filename of a property file normall located in
- * the inital working directory or user home directory
- * @param key a property key containing the implemention artifact specification
- * @exception Exception if a builder creation error occurs
- */
- public DefaultBuilder( InitialContext context, ClassLoader classloader, String
resource, String key )
- throws Exception
- {
- this(
- context,
- classloader,
- createImplementationArtifact(
- classloader,
- context.getInitialWorkingDirectory(),
- resource,
- key ) );
- }
/**
* Creates a DefaultBuilder for a specific target application.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]