org.spiffyui.build
Class HTMLPropertiesTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.spiffyui.build.HTMLPropertiesTask
All Implemented Interfaces:
java.lang.Cloneable

public class HTMLPropertiesTask
extends org.apache.tools.ant.Task

This is the Ant custom task for generating properties files from HTML files


Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
HTMLPropertiesTask()
           
 
Method Summary
 void add(org.apache.tools.ant.types.ResourceCollection c)
          Add an arbitrary ResourceCollection.
 void addFilelist(org.apache.tools.ant.types.FileList list)
          List of files to compile.
 void addFileset(org.apache.tools.ant.types.FileSet set)
          Adds the file set of JavaScript files to compile
 void execute()
          Executes this task to run the compiler.
 void reset()
          Reset state to default.
 void setPackage(java.lang.String packageName)
          Specify the package name for the generated Java file.
 void setProperties(java.io.File file)
          Specify the location of the properties output file.
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLPropertiesTask

public HTMLPropertiesTask()
Method Detail

addFileset

public void addFileset(org.apache.tools.ant.types.FileSet set)
Adds the file set of JavaScript files to compile

Parameters:
set - the set of files

addFilelist

public void addFilelist(org.apache.tools.ant.types.FileList list)
List of files to compile.

Parameters:
list - the list of files

setProperties

public void setProperties(java.io.File file)
Specify the location of the properties output file. This is required.

Parameters:
file - the output file name

setPackage

public void setPackage(java.lang.String packageName)
Specify the package name for the generated Java file. If this field isn't specified then this task will only generate the properties file

Parameters:
packageName - The package name for the generated Java file

add

public void add(org.apache.tools.ant.types.ResourceCollection c)
Add an arbitrary ResourceCollection.

Parameters:
c - the ResourceCollection to add.
Since:
Ant 1.7

reset

public void reset()
Reset state to default.


execute

public void execute()
             throws org.apache.tools.ant.BuildException
Executes this task to run the compiler.

Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException - if there isn't enough information to run the GWT compiler