public class ResourceGenTask
extends org.apache.tools.ant.Task
Modifier and Type | Class and Description |
---|---|
static class |
ResourceGenTask.LicenseCodeWriter
Writes all the source files under the specified file folder and
inserts a license file each java source file.
|
Modifier and Type | Field and Description |
---|---|
private java.io.File |
destDir |
private java.lang.String |
encoding |
private java.io.File |
license |
private java.lang.String |
localizationUtilitiesPkgName |
private org.apache.tools.ant.types.FileSet |
resources
Resource files to be compiled
|
Constructor and Description |
---|
ResourceGenTask() |
Modifier and Type | Method and Description |
---|---|
void |
addConfiguredResource(org.apache.tools.ant.types.FileSet fs) |
private java.lang.String |
addLocalizationUtilityPackageName(java.lang.String className) |
private int |
countArgs(java.lang.String value)
Counts the number of arguments.
|
void |
execute() |
private java.lang.String |
getClassName(java.io.File res)
Computes the class name from the resource bundle name.
|
void |
setDestDir(java.io.File dir) |
void |
setEncoding(java.lang.String encoding) |
void |
setLicense(java.io.File license) |
void |
setLocalizationUtilitiesPkgName(java.lang.String localizationUtilitiesPkgName) |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
private org.apache.tools.ant.types.FileSet resources
private java.io.File destDir
private java.io.File license
private java.lang.String localizationUtilitiesPkgName
private java.lang.String encoding
public void addConfiguredResource(org.apache.tools.ant.types.FileSet fs)
public void setDestDir(java.io.File dir)
public void setLicense(java.io.File license)
public void setEncoding(java.lang.String encoding)
public void setLocalizationUtilitiesPkgName(java.lang.String localizationUtilitiesPkgName)
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
private java.lang.String addLocalizationUtilityPackageName(java.lang.String className)
private int countArgs(java.lang.String value)
private java.lang.String getClassName(java.io.File res)