public abstract class RTask extends org.apache.tools.ant.Task implements MessageListener
Modifier and Type | Field and Description |
---|---|
protected static java.lang.StringBuilder |
buffer |
protected boolean |
failonerror |
protected boolean |
failure |
protected static AntRMainLoopCallbacks |
loop |
protected static REXPReference |
project |
protected static JRIEngine |
R
REngine used by R specific tasks
|
Constructor and Description |
---|
RTask() |
Modifier and Type | Method and Description |
---|---|
private static REXPReference |
createJavaObjectReference(java.lang.Object o)
Deprecated.
|
void |
fails() |
void |
flush()
MessageListener implementation, log the message buffer |
private static JRIEngine |
initR()
Initializes R
|
private void |
resetCustomErrorHandler() |
protected REXP |
run_(java.lang.String code) |
protected REXP |
run(java.lang.String code) |
void |
send(Message message)
MessageListener implementation, add the message to a message buffer |
private void |
setCustomErrorHandler() |
void |
setFailonerror(boolean failonerror) |
bindToOwner, execute, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
protected static JRIEngine R
protected static AntRMainLoopCallbacks loop
protected static java.lang.StringBuilder buffer
protected static REXPReference project
protected boolean failonerror
protected boolean failure
private static JRIEngine initR()
protected REXP run(java.lang.String code) throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
private void resetCustomErrorHandler()
private void setCustomErrorHandler() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
protected REXP run_(java.lang.String code) throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
@Deprecated private static REXPReference createJavaObjectReference(java.lang.Object o)
public void setFailonerror(boolean failonerror)
public void fails()
public void send(Message message)
MessageListener
implementation, add the message to a message buffersend
in interface MessageListener
message
- a message sent by the R main looppublic void flush()
MessageListener
implementation, log the message bufferflush
in interface MessageListener
AntRMainLoopCallbacks#rFlushConsole(org.rosuda.JRI.Rengine)
Copyright © 2009, Romain Francois francoisromain@free.fr