diff options
author | Xavier Ducrohet <xav@android.com> | 2012-07-10 16:58:36 -0700 |
---|---|---|
committer | Xavier Ducrohet <xav@android.com> | 2012-07-10 16:58:36 -0700 |
commit | 662db9123554e1b067d95e4590f2cf543b4e4f8f (patch) | |
tree | 577fd78377d89dab86876f8c9a20e4910434e03a /anttasks/src | |
parent | 310777dae93bc4e402ec8a807ce3151271d1038b (diff) | |
download | sdk-662db9123554e1b067d95e4590f2cf543b4e4f8f.zip sdk-662db9123554e1b067d95e4590f2cf543b4e4f8f.tar.gz sdk-662db9123554e1b067d95e4590f2cf543b4e4f8f.tar.bz2 |
Fix renderscript compilation from Ant.
Change-Id: Ie9fa05173a5e4e1c7cae48cabb37f3cfe7d085cb
Diffstat (limited to 'anttasks/src')
-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) { |