@Deprecated @InterfaceAudience.Public @InterfaceStability.Stable public class RccTask extends org.apache.tools.ant.Task
This task takes the given record definition files and compiles them into java or c++ files. It is then up to the user to compile the generated files.
The task requires the file
or the nested fileset element to be
specified. Optional attributes are language
(set the output
language, default is "java"),
destdir
(name of the destination directory for generated java/c++
code, default is ".") and failonerror
(specifies error handling
behavior. default is true).
<recordcc destdir="${basedir}/gensrc" language="java"> <fileset include="**\/*.jr" /> </recordcc>
Constructor and Description |
---|
RccTask()
Deprecated.
Creates a new instance of RccTask
|
Modifier and Type | Method and Description |
---|---|
void |
addFileset(org.apache.tools.ant.types.FileSet set)
Deprecated.
Adds a fileset that can consist of one or more files
|
void |
execute()
Deprecated.
Invoke the Hadoop record compiler on each record definition file
|
void |
setDestdir(File dir)
Deprecated.
Sets directory where output files will be generated
|
void |
setFailonerror(boolean flag)
Deprecated.
Given multiple files (via fileset), set the error handling behavior
|
void |
setFile(File file)
Deprecated.
Sets the record definition file attribute
|
void |
setLanguage(String language)
Deprecated.
Sets the output language option
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public RccTask()
public void setLanguage(String language)
language
- "java"/"c++"public void setFile(File file)
file
- record definition filepublic void setFailonerror(boolean flag)
flag
- true will throw build exception in case of failure (default)public void setDestdir(File dir)
dir
- output directorypublic void addFileset(org.apache.tools.ant.types.FileSet set)
set
- Set of record definition filespublic void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
Copyright © 2015 Apache Software Foundation. All rights reserved.