notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
svn commit: r1413 - development/main/magic/bootstrap/src/main/net/dpml/magic/bootstrap
- From: mcconnell AT netcompartner.com
- To: notify-dpml AT lists.ibiblio.org
- Subject: svn commit: r1413 - development/main/magic/bootstrap/src/main/net/dpml/magic/bootstrap
- Date: Sun, 09 Jan 2005 14:47:20 +0100
Author: mcconnell
Date: Sun Jan 9 14:47:20 2005
New Revision: 1413
Modified:
development/main/magic/bootstrap/src/main/net/dpml/magic/bootstrap/TransitComponentHelper.java
Log:
cleanup declarations of magic uri
Modified:
development/main/magic/bootstrap/src/main/net/dpml/magic/bootstrap/TransitComponentHelper.java
==============================================================================
---
development/main/magic/bootstrap/src/main/net/dpml/magic/bootstrap/TransitComponentHelper.java
(original)
+++
development/main/magic/bootstrap/src/main/net/dpml/magic/bootstrap/TransitComponentHelper.java
Sun Jan 9 14:47:20 2005
@@ -1,5 +1,5 @@
/*
- * Copyright 2004 Stephen J. McConnell.
+ * Copyright 2004-2005 Stephen J. McConnell.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -58,6 +58,13 @@
// static
//------------------------------------------------------------------------
+ public static final String MAGIC_URI = "antlib:net.dpml.magic";
+ public static final String MAGIC_INIT_URI = MAGIC_URI + ":init";
+ public static final String MAGIC_PLUGIN_URI = MAGIC_URI + ":plugin";
+ public static final String MAGIC_IMPORT_URI = MAGIC_URI + ":import";
+
+ public static final String META_ARTIFACT_HEADER = "artifact:meta:"
+
/**
* Creation of a component helper for the supplied project.
*
@@ -160,10 +167,9 @@
parent.setNext( this );
}
- addTaskDefinition( "antlib:net.dpml.magic:init", MainTask.class );
- addTaskDefinition( "antlib:net.dpml.magic:plugin", PluginTask.class );
- addTaskDefinition( "antlib:net.dpml.magic:import",
ImportArtifactTask.class );
-
+ addTaskDefinition( MAGIC_INIT_URI, MainTask.class );
+ addTaskDefinition( MAGIC_PLUGIN_URI, PluginTask.class );
+ addTaskDefinition( MAGIC_IMPORT_URI, ImportArtifactTask.class );
}
//------------------------------------------------------------------------
@@ -244,7 +250,7 @@
{
return uri;
}
- if( urn.startsWith( "artifact:meta:" ) )
+ if( urn.startsWith( META_ARTIFACT_HEADER ) )
{
return convertToURI( urn );
}
- svn commit: r1413 - development/main/magic/bootstrap/src/main/net/dpml/magic/bootstrap, mcconnell, 01/09/2005
Archive powered by MHonArc 2.6.24.