notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
r1381 - in trunk/main/depot/tools/builder/src/main/net/dpml/tools: impl info
- From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
- To: notify-dpml AT lists.ibiblio.org
- Subject: r1381 - in trunk/main/depot/tools/builder/src/main/net/dpml/tools: impl info
- Date: Wed, 19 Apr 2006 06:44:44 +0200
Author: mcconnell
Date: 2006-04-19 06:43:53 +0200 (Wed, 19 Apr 2006)
New Revision: 1381
Modified:
trunk/main/depot/tools/builder/src/main/net/dpml/tools/impl/DefaultContext.java
trunk/main/depot/tools/builder/src/main/net/dpml/tools/info/BuilderDirectiveHelper.java
Log:
remove phase directive
Modified:
trunk/main/depot/tools/builder/src/main/net/dpml/tools/impl/DefaultContext.java
===================================================================
---
trunk/main/depot/tools/builder/src/main/net/dpml/tools/impl/DefaultContext.java
2006-04-19 04:35:12 UTC (rev 1380)
+++
trunk/main/depot/tools/builder/src/main/net/dpml/tools/impl/DefaultContext.java
2006-04-19 04:43:53 UTC (rev 1381)
@@ -35,7 +35,6 @@
import net.dpml.library.Filter;
import net.dpml.library.impl.DefaultLibrary;
-import net.dpml.tools.info.PhaseDirective;
import net.dpml.tools.info.ListenerDirective;
import net.dpml.tools.info.ProcessorDirective;
Modified:
trunk/main/depot/tools/builder/src/main/net/dpml/tools/info/BuilderDirectiveHelper.java
===================================================================
---
trunk/main/depot/tools/builder/src/main/net/dpml/tools/info/BuilderDirectiveHelper.java
2006-04-19 04:35:12 UTC (rev 1380)
+++
trunk/main/depot/tools/builder/src/main/net/dpml/tools/info/BuilderDirectiveHelper.java
2006-04-19 04:43:53 UTC (rev 1381)
@@ -56,8 +56,6 @@
private static final String PROPERTY_ELEMENT_NAME = "property";
private static final String PROCESSORS_ELEMENT_NAME = "processors";
private static final String PROCESSOR_ELEMENT_NAME = "processor";
- private static final String PHASES_ELEMENT_NAME = "phases";
- private static final String PHASE_ELEMENT_NAME = "phase";
private BuilderDirectiveHelper()
{
@@ -268,39 +266,6 @@
}
}
- private static PhaseDirective[] buildPhaseDirectives( Element element )
throws Exception
- {
- Element[] children = ElementHelper.getChildren( element );
- PhaseDirective[] phases = new PhaseDirective[ children.length ];
- for( int i=0; i<children.length; i++ )
- {
- Element child = children[i];
- phases[i] = buildPhaseDirective( child );
- }
- return phases;
- }
-
- private static PhaseDirective buildPhaseDirective( Element element )
throws Exception
- {
- final String tag = element.getTagName();
- if( PHASE_ELEMENT_NAME.equals( tag ) )
- {
- final String name = ElementHelper.getAttribute( element, "name"
);
- final String deps = ElementHelper.getAttribute( element,
"depends" );
- final String[] depends = buildDependenciesArray( deps );
- final String description = ElementHelper.getAttribute( element,
"description" );
- return new PhaseDirective( name, description, depends );
- }
- else
- {
- final String error =
- "Invalid resource element name ["
- + tag
- + "].";
- throw new IllegalArgumentException( error );
- }
- }
-
private static String[] buildDependenciesArray( String value )
{
if( null == value )
- r1381 - in trunk/main/depot/tools/builder/src/main/net/dpml/tools: impl info, mcconnell at BerliOS, 04/19/2006
Archive powered by MHonArc 2.6.24.