donaldp 2002/06/10 23:41:32
Added: framework/src/java/org/apache/myrmidon/framework
SimpleTargetTask.java
Removed: framework/src/test/org/apache/myrmidon/framework
TestCaseTargetTask.java
Log:
Move SimpleTargetTask into main framework tree
Revision Changes Path
1.1
jakarta-ant-myrmidon/framework/src/java/org/apache/myrmidon/framework/SimpleTargetTask.java
Index: SimpleTargetTask.java
===================================================================
/*
* 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.txt file.
*/
package org.apache.myrmidon.framework;
import java.util.ArrayList;
import org.apache.myrmidon.api.TaskException;
import org.apache.myrmidon.api.metadata.ModelElement;
/**
* A simple <target> implementation.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Adam Murdoch</a>
* @version $Revision: 1.1 $ $Date: 2002/06/11 06:41:32 $
*
* @ant.task name="simple-target"
*/
public class SimpleTargetTask
extends AbstractContainerTask
{
private final ArrayList m_tasks = new ArrayList();
/**
* The task name.
*/
public void setName( final String name )
{
// Ignore
}
/**
* Adds a nested task to execute.
*/
public void add( final ModelElement taskModel )
{
m_tasks.add( taskModel );
}
/**
* Executes this target.
*/
public void execute()
throws TaskException
{
final int i = m_tasks.size();
for( int j = 0; j < i; j++ )
{
final ModelElement taskModel = (ModelElement)m_tasks.get( j );
executeTask( taskModel );
}
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>