de.viaboxx.nlstools.tasks
Class FillLocaleTask

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

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

Fills missing keys in locale with the values found in a different locale in the same file.

<fillLocale from="filled/filled-main-default-FR.xml" to="complete/main-default.xml" sourceLocale="en_US" targetLocale="it_IT" doSetReviewFlag="false" fillOnlyKeysStartingWith="key_line" />


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
FillLocaleTask()
           
 
Method Summary
 void execute()
           
 String getFillOnlyKeysStartingWith()
           
 File getFrom()
           
 String getSourceLocale()
           
 String getTargetLocale()
           
 File getTo()
           
 boolean isDoSetReviewFlag()
           
 void setDoSetReviewFlag(boolean doSetReviewFlag)
           
 void setFillOnlyKeysStartingWith(String fillOnlyKeysStartingWith)
           
 void setFrom(File from)
           
 void setSourceLocale(String sourceLocale)
           
 void setTargetLocale(String targetLocale)
           
 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

FillLocaleTask

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

getTo

public File getTo()

setTo

public void setTo(File to)

getSourceLocale

public String getSourceLocale()

setSourceLocale

public void setSourceLocale(String sourceLocale)

getTargetLocale

public String getTargetLocale()

setTargetLocale

public void setTargetLocale(String targetLocale)

getFillOnlyKeysStartingWith

public String getFillOnlyKeysStartingWith()

setFillOnlyKeysStartingWith

public void setFillOnlyKeysStartingWith(String fillOnlyKeysStartingWith)

isDoSetReviewFlag

public boolean isDoSetReviewFlag()

setDoSetReviewFlag

public void setDoSetReviewFlag(boolean doSetReviewFlag)


Copyright © 2014. All Rights Reserved.