From 2c4c28cd440ceff0fe517de99f5291a63b35004b Mon Sep 17 00:00:00 2001 From: Stefan Bodewig Date: Tue, 21 Feb 2017 13:36:55 +0100 Subject: [PATCH] three more missing setEncoding methods, thanks to @pyxide --- .../ant/types/optional/AbstractScriptComponent.java | 10 ++++++++++ .../apache/tools/ant/types/optional/ScriptFilter.java | 10 ++++++++++ .../tools/ant/types/optional/ScriptSelector.java | 9 +++++++++ 3 files changed, 29 insertions(+) diff --git a/src/main/org/apache/tools/ant/types/optional/AbstractScriptComponent.java b/src/main/org/apache/tools/ant/types/optional/AbstractScriptComponent.java index df5a3cec3..a4a288b51 100644 --- a/src/main/org/apache/tools/ant/types/optional/AbstractScriptComponent.java +++ b/src/main/org/apache/tools/ant/types/optional/AbstractScriptComponent.java @@ -155,4 +155,14 @@ public abstract class AbstractScriptComponent extends ProjectComponent { 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); + } } diff --git a/src/main/org/apache/tools/ant/types/optional/ScriptFilter.java b/src/main/org/apache/tools/ant/types/optional/ScriptFilter.java index 3f6ec88fd..3b0f1a193 100644 --- a/src/main/org/apache/tools/ant/types/optional/ScriptFilter.java +++ b/src/main/org/apache/tools/ant/types/optional/ScriptFilter.java @@ -180,4 +180,14 @@ public class ScriptFilter extends TokenFilter.ChainableReaderFilter { 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); + } } diff --git a/src/main/org/apache/tools/ant/types/optional/ScriptSelector.java b/src/main/org/apache/tools/ant/types/optional/ScriptSelector.java index ca28f69f5..922584039 100644 --- a/src/main/org/apache/tools/ant/types/optional/ScriptSelector.java +++ b/src/main/org/apache/tools/ant/types/optional/ScriptSelector.java @@ -220,4 +220,13 @@ public class ScriptSelector extends BaseSelector { this.selected = selected; } + /** + * 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); + } }