diff options
Diffstat (limited to 'anttasks/src/com/android/ant/RenderScriptTask.java')
-rw-r--r-- | anttasks/src/com/android/ant/RenderScriptTask.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/anttasks/src/com/android/ant/RenderScriptTask.java b/anttasks/src/com/android/ant/RenderScriptTask.java index b64a731..b480316 100644 --- a/anttasks/src/com/android/ant/RenderScriptTask.java +++ b/anttasks/src/com/android/ant/RenderScriptTask.java @@ -163,8 +163,13 @@ public class RenderScriptTask extends MultiFilesTask { mExecutable = TaskHelper.checkSinglePath("executable", executable); } - public void setIncludePath(Path value) { - mIncludePath = value; + public void setIncludePathRefId(String refId) { + Object path = getProject().getReference(refId); + if (path instanceof Path) { + mIncludePath = (Path) path; + } else if (path != null) { + throw new BuildException(refId + " is expected to reference a Path object."); + } } public void setGenFolder(Path value) { |