1 | if (encoding.equals(MIME)↵ | | 1 | if (encoding.equals(UU)↵
|
2 | || (encoding.equals(AUTO) && !autoFound)) {↵ | | 2 | || (encoding.equals(AUTO) && !autoFound)) {↵
|
3 | try {↵ | | 3 | try {↵
|
4 | mailer = (Mailer) ClasspathUtils.newInstance(↵ | | 4 | mailer = (Mailer) ClasspathUtils.newInstance(↵
|
5 | "org.apache.tools.ant.taskdefs.email.MimeMailer",↵ | | 5 | "org.apache.tools.ant.taskdefs.email.UUMailer",↵
|
6 | EmailTask.class.getClassLoader(), Mailer.class);↵ | | 6 | EmailTask.class.getClassLoader(), Mailer.class);↵
|
7 | autoFound = true;↵ | | 7 | autoFound = true;↵
|
8 | log("Using MIME mail", Project.MSG_VERBOSE);↵ | | 8 | log("Using UU mail", Project.MSG_VERBOSE);↵
|
9 | } catch (BuildException e) {↵ | | 9 | } catch (BuildException e) {↵
|
10 | Throwable t = e.getCause() == null ? e : e.getCause();↵ | | 10 | Throwable t = e.getCause() == null ? e : e.getCause();↵
|
11 | log("Failed to initialise MIME mail: " + t.getMessage(),↵ | | 11 | log("Failed to initialise UU mail: " + t.getMessage(),↵
|
12 | Project.MSG_WARN);↵ | | 12 | Project.MSG_WARN);↵
|
13 | return;↵ | | 13 | return;↵
|
14 | | | 14 |
|