Execute the requested operation. @exception BuildException if an error occurs
()
| 72 | * @exception BuildException if an error occurs |
| 73 | */ |
| 74 | @Override |
| 75 | public void execute() throws BuildException { |
| 76 | |
| 77 | super.execute(); |
| 78 | if (type != null) { |
| 79 | try { |
| 80 | execute("/resources?type=" + URLEncoder.encode(type, getCharset())); |
| 81 | } catch (UnsupportedEncodingException e) { |
| 82 | throw new BuildException("Invalid 'charset' attribute: " + getCharset()); |
| 83 | } |
| 84 | } else { |
| 85 | execute("/resources"); |
| 86 | } |
| 87 | |
| 88 | } |
| 89 | |
| 90 | |
| 91 | } |
nothing calls this directly
no test coverage detected