You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2017/02/20 16:59:02 UTC
[12/12] ant git commit: seems there was a setter missing in
seems there was a setter missing in <script>
Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/5a0d2d1f
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/5a0d2d1f
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/5a0d2d1f
Branch: refs/heads/master
Commit: 5a0d2d1f174f6ddef40ebab925b4aeb02646adab
Parents: 13c6aaa
Author: Stefan Bodewig <bo...@apache.org>
Authored: Mon Feb 20 17:58:25 2017 +0100
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Mon Feb 20 17:58:25 2017 +0100
----------------------------------------------------------------------
.../org/apache/tools/ant/taskdefs/optional/Script.java | 11 +++++++++++
1 file changed, 11 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ant/blob/5a0d2d1f/src/main/org/apache/tools/ant/taskdefs/optional/Script.java
----------------------------------------------------------------------
diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/Script.java b/src/main/org/apache/tools/ant/taskdefs/optional/Script.java
index 2b8d9f6..de6bf5a 100644
--- a/src/main/org/apache/tools/ant/taskdefs/optional/Script.java
+++ b/src/main/org/apache/tools/ant/taskdefs/optional/Script.java
@@ -130,4 +130,15 @@ public class Script extends Task {
public void setSetBeans(boolean setBeans) {
helper.setSetBeans(setBeans);
}
+
+ /**
+ * Set the encoding of the script from an external file ; optional.
+ *
+ * @param encoding the encoding of the file containing the script source.
+ * @since Ant 1.10.2
+ */
+ public void setEncoding(String encoding) {
+ helper.setEncoding(encoding);
+ }
+
}