blob: c02123e5b0ba002bec32b108f1fa018591a5e12c [file] [log] [blame]
/*
* 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.ant.modules.test;
import org.apache.ant.AntException;
import org.apache.ant.tasklet.AbstractTasklet;
/**
* Test sub-elements addition.
*
* @author <a href="mailto:donaldp@apache.org">Peter Donald</a>
*/
public class SubElementTest
extends AbstractTasklet
{
public static final class Beep
{
public void setMessage( final String string )
{
System.out.println( string );
}
}
public Beep createCreateBeep()
{
System.out.println( "createCreateBeep()" );
return new Beep();
}
public void addAddBeep( final Beep beep )
{
System.out.println( "addBeeper(" + beep + ");" );
}
public void run()
throws AntException
{
}
}