@@ -155,4 +155,14 @@ public abstract class AbstractScriptComponent extends ProjectComponent { | |||||
public void setSetBeans(boolean setBeans) { | public void setSetBeans(boolean setBeans) { | ||||
helper.setSetBeans(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); | |||||
} | |||||
} | } |
@@ -180,4 +180,14 @@ public class ScriptFilter extends TokenFilter.ChainableReaderFilter { | |||||
public void setSetBeans(boolean setBeans) { | public void setSetBeans(boolean setBeans) { | ||||
helper.setSetBeans(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); | |||||
} | |||||
} | } |
@@ -220,4 +220,13 @@ public class ScriptSelector extends BaseSelector { | |||||
this.selected = selected; | 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); | |||||
} | |||||
} | } |