Browse Source

three more missing setEncoding methods, thanks to @pyxide

master
Stefan Bodewig 8 years ago
parent
commit
2c4c28cd44
3 changed files with 29 additions and 0 deletions
  1. +10
    -0
      src/main/org/apache/tools/ant/types/optional/AbstractScriptComponent.java
  2. +10
    -0
      src/main/org/apache/tools/ant/types/optional/ScriptFilter.java
  3. +9
    -0
      src/main/org/apache/tools/ant/types/optional/ScriptSelector.java

+ 10
- 0
src/main/org/apache/tools/ant/types/optional/AbstractScriptComponent.java View File

@@ -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);
}
}

+ 10
- 0
src/main/org/apache/tools/ant/types/optional/ScriptFilter.java View File

@@ -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);
}
}

+ 9
- 0
src/main/org/apache/tools/ant/types/optional/ScriptSelector.java View File

@@ -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);
}
}

Loading…
Cancel
Save