@@ -5,7 +5,7 @@
* version 1.1, a copy of which has been included with this distribution in
* version 1.1, a copy of which has been included with this distribution in
* the LICENSE file.
* the LICENSE file.
*/
*/
package org.apache.ant.modules.basic ;
package org.apache.myrmidon.libs.runtime ;
import java.util.ArrayList;
import java.util.ArrayList;
import org.apache.avalon.framework.component.ComponentException;
import org.apache.avalon.framework.component.ComponentException;
@@ -13,14 +13,14 @@ import org.apache.avalon.framework.component.ComponentManager;
import org.apache.avalon.framework.component.Composable;
import org.apache.avalon.framework.component.Composable;
import org.apache.avalon.framework.context.Context;
import org.apache.avalon.framework.context.Context;
import org.apache.myrmidon.api.AbstractTask;
import org.apache.myrmidon.api.AbstractTask;
import org.apache.myrmidon.api.TaskException;
import org.apache.myrmidon.api.DefaultTaskContext;
import org.apache.myrmidon.api.DefaultTaskContext;
import org.apache.myrmidon.api.TaskContext;
import org.apache.myrmidon.api.TaskContext;
import org.apache.myrmidon.api.TaskException;
import org.apache.myrmidon.components.manager.ProjectManager;
import org.apache.myrmidon.components.manager.ProjectManager;
import org.apache.myrmidon.components.model.Project;
import org.apache.myrmidon.components.model.Project;
/**
/**
* This is abstract base class for tasklets .
* TODO: Determine if low cost antcalls are needed .
*
*
* @author <a href="mailto:donaldp@apache.org">Peter Donald</a>
* @author <a href="mailto:donaldp@apache.org">Peter Donald</a>
*/
*/
@@ -53,7 +53,7 @@ public class AntCall
{
{
m_target = target;
m_target = target;
}
}
/*
public Property createParam()
public Property createParam()
throws Exception
throws Exception
{
{
@@ -64,7 +64,7 @@ public class AntCall
m_properties.add( property );
m_properties.add( property );
return property;
return property;
}
}
*/
public void execute()
public void execute()
throws TaskException
throws TaskException
{
{
@@ -73,19 +73,20 @@ public class AntCall
throw new TaskException( "Target attribute must be specified" );
throw new TaskException( "Target attribute must be specified" );
}
}
/*
final int size = m_properties.size();
final int size = m_properties.size();
for( int i = 0; i < size; i++ )
for( int i = 0; i < size; i++ )
{
{
final Property property = (Property)m_properties.get( i );
final Property property = (Property)m_properties.get( i );
property.execute();
property.execute();
}
}
*/
getLogger().info( "Calling target " + m_target );
getLogger().info( "Calling target " + m_target );
//This calls startProject() which is probably not wanted???
//This calls startProject() which is probably not wanted???
//TODO: FIXME when scoping is decided
//TODO: FIXME when scoping is decided
//m_projectManager.executeProject( m_project, m_target );
//m_projectManager.executeProject( m_project, m_target );
getLogger().warn( "ANTCALL NOT IMPLEMENTED - waiting for " +
getLogger().warn( "ANTCALL NOT IMPLEMENTED - waiting for " +
"scope rules to be decided" );
"scope rules to be decided" );
}
}
}
}