From fc84cf3d031e7790dfc8d335334fa08e6d78f8b1 Mon Sep 17 00:00:00 2001 From: Peter Donald Date: Wed, 27 Jun 2001 01:55:11 +0000 Subject: [PATCH] Remove Antcall until it can be determined if we want or need it. (and if we do want/need it - what rules apply). git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269241 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/myrmidon/libs/runtime/AntCall.java | 92 ------------------- 1 file changed, 92 deletions(-) delete mode 100644 proposal/myrmidon/src/java/org/apache/myrmidon/libs/runtime/AntCall.java diff --git a/proposal/myrmidon/src/java/org/apache/myrmidon/libs/runtime/AntCall.java b/proposal/myrmidon/src/java/org/apache/myrmidon/libs/runtime/AntCall.java deleted file mode 100644 index d4efd3f3b..000000000 --- a/proposal/myrmidon/src/java/org/apache/myrmidon/libs/runtime/AntCall.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright (C) The Apache Software Foundation. All rights reserved. - * - * This software is published under the terms of the Apache Software License - * version 1.1, a copy of which has been included with this distribution in - * the LICENSE file. - */ -package org.apache.myrmidon.libs.runtime; - -import java.util.ArrayList; -import org.apache.avalon.framework.component.ComponentException; -import org.apache.avalon.framework.component.ComponentManager; -import org.apache.avalon.framework.component.Composable; -import org.apache.avalon.framework.context.Context; -import org.apache.myrmidon.api.AbstractTask; -import org.apache.myrmidon.api.DefaultTaskContext; -import org.apache.myrmidon.api.TaskContext; -import org.apache.myrmidon.api.TaskException; -import org.apache.myrmidon.components.manager.ProjectManager; -import org.apache.myrmidon.components.model.Project; - -/** - * TODO: Determine if low cost antcalls are needed. - * - * @author Peter Donald - */ -public class AntCall - extends AbstractTask - implements Composable -{ - private ProjectManager m_projectManager; - private Project m_project; - private String m_target; - private ArrayList m_properties = new ArrayList(); - private TaskContext m_childContext; - private ComponentManager m_componentManager; - - public void contextualize( final Context context ) - { - super.contextualize( context ); - m_childContext = new DefaultTaskContext( getContext() ); - } - - public void compose( final ComponentManager componentManager ) - throws ComponentException - { - m_componentManager = componentManager; - m_projectManager = (ProjectManager)componentManager.lookup( ProjectManager.ROLE ); - m_project = (Project)componentManager.lookup( Project.ROLE ); - } - - public void setTarget( final String target ) - { - m_target = target; - } -/* - public Property createParam() - throws Exception - { - final Property property = new Property(); - property.setLogger( getLogger() ); - property.contextualize( m_childContext ); - property.compose( m_componentManager ); - m_properties.add( property ); - return property; - } -*/ - public void execute() - throws TaskException - { - if( null == m_target ) - { - throw new TaskException( "Target attribute must be specified" ); - } - -/* - final int size = m_properties.size(); - for( int i = 0; i < size; i++ ) - { - final Property property = (Property)m_properties.get( i ); - property.execute(); - } -*/ - getLogger().info( "Calling target " + m_target ); - - //This calls startProject() which is probably not wanted??? - //TODO: FIXME when scoping is decided - //m_projectManager.executeProject( m_project, m_target ); - getLogger().warn( "ANTCALL NOT IMPLEMENTED - waiting for " + - "scope rules to be decided" ); - } -}