A task to send a message to an Yahoo! Instant Messenger user. Requires the use of S.E. Morris' YMSGR9 library to connect to a Yahoo! IM server.
Attribute | Description | Required |
from | User name of the sender. This is a user name to be used to connect to the server. The user must exist. | attribute |
password | password of ymsgr "from" user. | attribute |
to | user to send message. | At least one of these, or the equivalent elements. |
tolist | Comma-separated list of users to send messages. | |
message | Message to send to user/buddies. | This or a
<message> element. |
Adds a user element. It takes no attributes.
Specifies the message to include in the IM.
. . . <taskdef name="ymsgr" classname="com.tfftech.ant.taskdefs.im.ymsgr.YmsgrTask" /> <target name="main"> <ymsgr from="buildmaster" to="otherimname@" password="pass"> <message>The nightly build has completed</message> </ymsgr> . . .
Sends an IM from buildmaster to otherimname@ymsgrserver.com, authenticating on AIM with the password pass. The IM sent is "The nightly build has completed".
. . . <taskdef name="ymsgr" classname="com.tfftech.ant.taskdefs.im.ymsgr.YmsgrTask" /> <target name="main"> <ymsgr from="buildmaster" password="passwd" tolist="user1,user2,user3"> <message>The nightly build has completed</message> </ymsgr> . . .
Sends an IM from builduser to multiple users user1,user2 and user3, authenticating with the password pass. The IM sent is "The nightly build has completed".
The following is equivalent to the above (Example 2):
. . . <taskdef name="someymsgrserver.org" classname="com.tfftech.ant.taskdefs.im.ymsgr.YmsgrTask" /> <target name="main"> <ymsgr from="buildmaster" password="pass"> <to>user1@somekindabuildplace.org</to> <to>user2</to> <to>user3</to> <message>The nightly build has completed</message> </ymsgr> . . .
Copyright © 2003 Thought For Food Tech, LLC. All rights reserved.