|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.rproject.ant.RTask
org.rproject.ant.RSet
public class RSet
Ant task that sets a property to contain the result of an R expression. <r-set code="R.home()" property="r.home" />
Field Summary | |
---|---|
private java.lang.String |
code
Code to be run |
private java.lang.String |
property
Name of the property to set |
Fields inherited from class org.rproject.ant.RTask |
---|
buffer, failonerror, failure, loop, project, R |
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location |
Constructor Summary | |
---|---|
RSet()
|
Method Summary | |
---|---|
void |
addText(java.lang.String code)
|
void |
execute()
Run the R code, grab the result of the last expression and use the value to set the property |
void |
setCode(java.lang.String code)
The R code to execute. |
void |
setProperty(java.lang.String property)
The name of the property to set |
Methods inherited from class org.rproject.ant.RTask |
---|
fails, flush, run_, run, send, setFailonerror |
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 |
Field Detail |
---|
private java.lang.String code
private java.lang.String property
Constructor Detail |
---|
public RSet()
Method Detail |
---|
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
public void setCode(java.lang.String code)
code
- R expression that must produce a character vectorpublic void setProperty(java.lang.String property)
property
- the name of the property to setpublic void addText(java.lang.String code)
code
- set the code to run by reading the content of the tag
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |