Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.objectstyle.woproject.ant
Class FrameworkFormat  view FrameworkFormat download FrameworkFormat.java

java.lang.Object
  extended byorg.objectstyle.woproject.ant.ProjectFormat
      extended byorg.objectstyle.woproject.ant.FrameworkFormat

public class FrameworkFormat
extends ProjectFormat

Subclass of ProjectFormat that defines file copying strategy for WOFrameworks.


Field Summary
static java.lang.String INFO_TEMPLATE
           
 
Fields inherited from class org.objectstyle.woproject.ant.ProjectFormat
endLine, task
 
Constructor Summary
FrameworkFormat(WOTask task)
          Creates new FrameworkFormat and initializes it with the name of the project being built.
 
Method Summary
 java.util.Iterator fileIterator()
          Returns an iterator over String objects that specify paths of the files to be created during the build process.
 org.apache.tools.ant.types.FilterSetCollection filtersForTarget(java.lang.String targetName)
          Returns a FilterSetCollection that should be applied when generating a target file.
private  WOFramework getFrameworkTask()
           
private  java.util.Iterator stringIterator(java.lang.String str)
          Returns an iterator with a single String element.
 java.lang.String templateForTarget(java.lang.String targetName)
          Returns a path to the template that should be used to build a target file.
 
Methods inherited from class org.objectstyle.woproject.ant.ProjectFormat
copyFile, getJarName, getName, infoFilter, log, log, processTemplates
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INFO_TEMPLATE

public static final java.lang.String INFO_TEMPLATE
See Also:
Constant Field Values
Constructor Detail

FrameworkFormat

public FrameworkFormat(WOTask task)
Creates new FrameworkFormat and initializes it with the name of the project being built.

Method Detail

getFrameworkTask

private WOFramework getFrameworkTask()

fileIterator

public java.util.Iterator fileIterator()
Description copied from class: ProjectFormat
Returns an iterator over String objects that specify paths of the files to be created during the build process.

Specified by:
fileIterator in class ProjectFormat

templateForTarget

public java.lang.String templateForTarget(java.lang.String targetName)
                                   throws org.apache.tools.ant.BuildException
Description copied from class: ProjectFormat
Returns a path to the template that should be used to build a target file.

Specified by:
templateForTarget in class ProjectFormat

filtersForTarget

public org.apache.tools.ant.types.FilterSetCollection filtersForTarget(java.lang.String targetName)
                                                                throws org.apache.tools.ant.BuildException
Description copied from class: ProjectFormat
Returns a FilterSetCollection that should be applied when generating a target file.

Specified by:
filtersForTarget in class ProjectFormat

stringIterator

private java.util.Iterator stringIterator(java.lang.String str)
Returns an iterator with a single String element.