notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
svn commit: r2329 - development/main/magic/core/src/main/net/dpml/magic
- From: niclas AT hedhman.org
- To: notify-dpml AT lists.ibiblio.org
- Subject: svn commit: r2329 - development/main/magic/core/src/main/net/dpml/magic
- Date: Wed, 20 Apr 2005 16:02:49 -0400
Author: niclas AT hedhman.org
Date: Wed Apr 20 16:02:45 2005
New Revision: 2329
Modified:
development/main/magic/core/src/main/net/dpml/magic/Index.java
Log:
Removed unused code, and some formatting.
Modified: development/main/magic/core/src/main/net/dpml/magic/Index.java
==============================================================================
--- development/main/magic/core/src/main/net/dpml/magic/Index.java
(original)
+++ development/main/magic/core/src/main/net/dpml/magic/Index.java Wed
Apr 20 16:02:45 2005
@@ -780,11 +780,6 @@
return XMLDefinitionBuilder.createResource( this, element, anchor,
uri );
}
- private Resource createResource( final Element element )
- {
- return XMLDefinitionBuilder.createResource( this, element, null );
- }
-
private boolean isaResource( final String tag )
{
return (
@@ -792,66 +787,12 @@
|| "project".equals( tag ) );
}
- protected void loadProperties(
- final Project project, final File file ) throws BuildException
+ protected void loadProperties( final Project project, final File file )
+ throws BuildException
{
final Property props = (Property) project.createTask( "property" );
props.init();
props.setFile( file );
props.execute();
}
-
- /*
- public void build( Definition definition )
- {
- Ant ant = (Ant) getProject().createTask( "ant" );
- Property property = ant.createProperty();
- property.setName( "urn:avalon.definition.key" );
- property.setValue( definition.getKey() );
- ant.setDir( definition.getBasedir() );
- ant.setInheritRefs( true );
- ant.init();
- ant.execute();
- }
-
- public Definition[] getBuildSequence( Definition definition )
- {
- ArrayList visited = new ArrayList();
- ArrayList targets = new ArrayList();
- ProjectRef[] refs = definition.getProjectRefs();
- for( int i=0; i<refs.length; i++ )
- {
- Definition def = getDefinition( refs[i] );
- getBuildSequence( visited, targets, def );
- }
- return (Definition[]) targets.toArray( new Definition[0] );
- }
-
- private void getBuildSequence( List visited, List targets, Definition
definition )
- {
- if( visited.contains( definition ) ) return;
- visited.add( definition );
-
- ProjectRef[] refs = definition.getProjectRefs();
- for( int i=0; i<refs.length; i++ )
- {
- Definition def = getDefinition( refs[i] );
- if( visited.contains( def ) )
- {
- final String error =
- "Recursive reference identified in project: "
- + definition
- + " in dependency " + def + ".";
- throw new BuildException( error );
- }
- getBuildSequence( visited, targets, def );
- }
-
- if( !targets.contains( definition ) )
- {
- targets.add( definition );
- }
- }
- */
-
}
- svn commit: r2329 - development/main/magic/core/src/main/net/dpml/magic, niclas, 04/20/2005
Archive powered by MHonArc 2.6.24.