at.spardat.xma.boot.antext
Class GenPreloadFile

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byat.spardat.xma.boot.antext.GenPreloadFile
All Implemented Interfaces:
java.lang.Cloneable

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

Ant task to generate a html document containing a list of links to all downloadable resources of an XMA application. This html document can be used for preloading these resources.
This task has to be called after the task AppDescriptor!


Nested Class Summary
static class GenPreloadFile.DeltaInfo
          Implements the subtag .
static class GenPreloadFile.Version
          Represents a version number.
static class GenPreloadFile.VersionRange
          Represents a range of version numbers defined by a minimum and a maximum version number.
 
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
GenPreloadFile()
           
 
Method Summary
 void addConfiguredDeltaInfo(GenPreloadFile.DeltaInfo info)
          Adds nested tag containing customization which delta file URLs should be included in the preload file.
 void execute()
          Called by ant to do the work of the task.
 void setGendeltas(boolean gen)
          Set if the URLs for delta download files should be included in the preload file.
 void setPlugin(java.io.File pluginFile)
          Set the plugins.xml file to read the plugin resources
 void setPreload(java.io.File preloadFile)
          Set the output file to write the preload list
 void setVerbose(boolean verbose)
          Turn on verbose output to the ant console
 void setXmaapp(java.io.File xmaappFile)
          Set the xma-app.xml file to read the resources
 
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

GenPreloadFile

public GenPreloadFile()
Method Detail

setXmaapp

public void setXmaapp(java.io.File xmaappFile)
Set the xma-app.xml file to read the resources


setPlugin

public void setPlugin(java.io.File pluginFile)
Set the plugins.xml file to read the plugin resources


setPreload

public void setPreload(java.io.File preloadFile)
Set the output file to write the preload list


setVerbose

public void setVerbose(boolean verbose)
Turn on verbose output to the ant console


setGendeltas

public void setGendeltas(boolean gen)
Set if the URLs for delta download files should be included in the preload file. If set to true, the URLs of all delta download files of all versioned files without a -tag are written. For all versioned files with -tag, the -tag determines which delta download files are written.


addConfiguredDeltaInfo

public void addConfiguredDeltaInfo(GenPreloadFile.DeltaInfo info)
Adds nested tag containing customization which delta file URLs should be included in the preload file.


execute

public void execute()
             throws org.apache.tools.ant.BuildException
Called by ant to do the work of the task. Reads the content of the two input files using classes from XMA-bootrt and generates the output file containing the list of the resources including the hashvalues in the urls.

Throws:
org.apache.tools.ant.BuildException