de.viaboxx.nlstools.tasks
Class LocaleSanityCheckerTask

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

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

Checks localisation files for obvious errors like missing translations for single entries. This task is locale-specific, so using it include telling which locale to analyze.

Usage sample: <sanityCheck locale="fr_FR" includeReview="false" from="complete/main-default.xml" to="sanity-check-FR.xml" />


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
LocaleSanityCheckerTask()
           
 
Method Summary
 void execute()
           
 File getFrom()
           
 String getLocale()
           
 File getTo()
           
 boolean isIncludeReview()
           
 void setFrom(File from)
           
 void setIncludeReview(boolean includeReview)
           
 void setLocale(String locale)
           
 void setTo(File to)
           
 
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

LocaleSanityCheckerTask

public LocaleSanityCheckerTask()
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

getFrom

public File getFrom()

setFrom

public void setFrom(File from)

getLocale

public String getLocale()

setLocale

public void setLocale(String locale)

getTo

public File getTo()

setTo

public void setTo(File to)

isIncludeReview

public boolean isIncludeReview()

setIncludeReview

public void setIncludeReview(boolean includeReview)


Copyright © 2014. All Rights Reserved.