tailieunhanh - Java Development with Ant phần 9

Mục đích cuối cùng của nhiệm vụ này là phát triển được một cửa cho việc triển khai, nó được thiết kế để các nhà cung cấp khác nhau có thể viết các thành phần triển khai để sử dụng bên trong công việc. Điều khiển từ xa với nhiệm vụ cho phép bạn kết nối với một máy chủ từ xa và ban hành một chuỗi các lệnh. | for Enumeration e String key String Substitutes Ant properties String value key key value boolean success null String prefix success success failure try boolean notify getValue properties prefix .notify on if notify return Should we send email String mailhost getValue properties mailhost localhost String from getValue properties from null String toList getValue properties prefix .to null String subject getValue properties prefix .subject success Build Success Build Failure sendMail mailhost from toList subject catch Exception e MailLogger failed to send e-mail Overrides capture messages protected void log String message message .append private String getValue Hashtable properties String name String defaultvalue throws Exception String propertyName MailLogger. name String value String propertyName if value null value defaultvalue if value null Listeners and loggers 511 throw new Exception Missing required parameter propertyName return value private void sendMail String mailhost String from String toList String subject String message throws IOException MailMessage mailMessage new MailMessage mailhost Uses Ant s from built-in mailer StringTokenizer t new StringTokenizer toList false while subject PrintStream ps message It is important to note that the buildFinished method initially delegates to DefaultLogger s implementation of buildFinished. This is necessary so that the final output is generated to the console or log file before sending the email. There are several configurable parameters that are needed to create a robust email logger .

TỪ KHÓA LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.