de.viaboxx.nlstools.tasks
Class CompareBundlesTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by de.viaboxx.nlstools.tasks.CompareBundlesTask
All Implemented Interfaces:
Cloneable

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

Compares new (e.g. changed by customer) and old (e.g. stuff without customer changes) locale files and lists keys and bundles that are missing in the new translation.

See Also:
to compare translation values


NEW (29.12.2010):
* Can handle XML and Excel files.


Sample usage: <compareBundles original="original/main-default.xml" newer="new/main-default.xml" results="compare-results.txt" />


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
CompareBundlesTask()
           
 
Method Summary
 void execute()
           
 File getNewer()
           
 File getOriginal()
           
 File getResults()
           
 void setNewer(File newer)
           
 void setOriginal(File original)
           
 void setResults(File results)
           
 
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

CompareBundlesTask

public CompareBundlesTask()
Method Detail

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException

getOriginal

public File getOriginal()

setOriginal

public void setOriginal(File original)

getNewer

public File getNewer()

setNewer

public void setNewer(File newer)

getResults

public File getResults()

setResults

public void setResults(File results)


Copyright © 2011. All Rights Reserved.