org.apache.tools.ant.taskdefs
Class AntStructure

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--org.apache.tools.ant.taskdefs.AntStructure

public class AntStructure
extends Task

Creates a partial DTD for Ant from the currently known tasks.

Version:
$Revision: 1.13.2.1 $
Author:
Stefan Bodewig

Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
AntStructure()
           
 
Method Summary
protected  boolean areNmtokens(java.lang.String[] s)
          Do the Strings all match the XML-NMTOKEN production?
 void execute()
          Called by the project to let the task do it's work.
protected  boolean isNmtoken(java.lang.String s)
          Does this String match the XML-NMTOKEN production?
 void setOutput(java.io.File output)
          The output file.
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AntStructure

public AntStructure()
Method Detail

setOutput

public void setOutput(java.io.File output)
The output file.

execute

public void execute()
             throws BuildException
Description copied from class: Task
Called by the project to let the task do it's work. This method may be called more than once, if the task is invoked more than once. For example, if target1 and target2 both depend on target3, then running "ant target1 target2" will run all tasks in target3 twice.
Overrides:
execute in class Task
Following copied from class: org.apache.tools.ant.Task
Throws:
BuildException - if someting goes wrong with the build

isNmtoken

protected boolean isNmtoken(java.lang.String s)
Does this String match the XML-NMTOKEN production?

areNmtokens

protected boolean areNmtokens(java.lang.String[] s)
Do the Strings all match the XML-NMTOKEN production?

Otherwise they are not suitable as an enumerated attribute, for example.



Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.