at.spardat.xma.boot.antext
Class JarDeltas

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

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

Since:
version_number

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
JarDeltas()
           
 
Method Summary
 void execute()
           
 void setMinVersion(java.lang.String minVersion)
          Set the minimal version number for which deltas shall be generated.
 void setNo99(boolean no99)
          Set if version 99.99.99 should be ignored.
 void setTarget(java.io.File target)
          Set the jar-file of the new version.
 void setTestDeltas(boolean testDeltas)
          Set if the generated deltas shall be tested.
 void setVersionsDir(java.io.File versionsDir)
          Set the directory where to search for version subdirectorys.
 
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

JarDeltas

public JarDeltas()
Method Detail

setTarget

public void setTarget(java.io.File target)
Set the jar-file of the new version. This file must contain a version number in its name. e.g.: xmartclient_1.6.0.jar
The delta files are generated in the same directory as the target file.

Parameters:
target - the jar-file for which the deltas to the previous versions shall be generated.

setMinVersion

public void setMinVersion(java.lang.String minVersion)
Set the minimal version number for which deltas shall be generated. Previous versions older than minVersion are ignored. The version number must be in the form: __ eg.: 1_3_0 This parameter is optional. Default is 0_0_0

Parameters:
minVersion -

setVersionsDir

public void setVersionsDir(java.io.File versionsDir)
Set the directory where to search for version subdirectorys. e.g. w:/imc/repository/xma/xma_runtime
The version subdirectorys must contain jar files of the same name as the target file with differend version numbers included in their names.

Parameters:
versionsDir -

setTestDeltas

public void setTestDeltas(boolean testDeltas)
Set if the generated deltas shall be tested. This parameter is optional. Default is true.

Parameters:
testDeltas -

setNo99

public void setNo99(boolean no99)
Set if version 99.99.99 should be ignored. If true no deltas are generated if the target file contains the version number _99.99.99. This parameter is optional. Default is false.

Parameters:
no99 -

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Throws:
org.apache.tools.ant.BuildException