<chapter id='announce_plugin'>
    <title>The Announce Plugin</title>
    <para>The Gradle announce plugin enables you to publish messages on succeeded tasks to your favourite platforms.
	It supports 
	<itemizedlist>
 		<listitem><ulink url='http://twitter.com'>Twitter</ulink></listitem>
 		<listitem><ulink url='http://ubuntu.com'>Ubuntu Notify</ulink></listitem>
        <listitem><ulink url="https://sites.google.com/site/snarlapp/home">Snarl</ulink>, a Windows Notification System</listitem>
        <listitem><ulink url="http://growl.info/">Growl</ulink>, a Mac OS X Notification System</listitem>
 	</itemizedlist>
	
	</para>

    <section>
        <title>Usage</title>
        <para>To use the announce plugin, include in your build script:</para>
        <sample id="useAnnouncePlugin" dir="announce" title="Using the announce plugin">
            <sourcefile file="build.gradle" snippet="use-plugin"/>
        </sample>

	<para>After that, configure you username and password (if required for the service you want to announce to) with:</para>
	<sample id="useAnnouncePlugin" dir="announce" title="Configure the announce plugin">
            <sourcefile file="build.gradle" snippet="announce-plugin-conf"/>
        </sample>

	<para>Finally, you can use announce with any task by attaching it via task.dolast() as shown below</para>
	<sample id="useAnnouncePlugin" dir="announce" title="Using the announce plugin">
            <sourcefile file="build.gradle" snippet="announce-usage"/>
        </sample>

	<para>As you can see, the syntax in <literal>.doLast</literal> is

		 <cmdsynopsis>
			<command> announce("MESSAGE", "TARGET")</command>
		 </cmdsynopsis>

		Where MESSAGE is any GString you pass (and might have constructed before). And TARGET might one of the following:

	</para>
    </section>
   <table>
       <title>announce plugin targets</title>
       <thead>
           <tr>
               <td>target literal</td>
               <td>target</td>
               <td>configuration parameters</td>
               <td>more information</td>
           </tr>
       </thead>
       <tr>
           <td>twitter</td>
           <td>Twitter</td>
           <td>username , password</td>
           <td></td>
       </tr>
       <tr>
           <td>snarl</td>
           <td>Snarl Windows Notification Service</td>
           <td></td>
           <td></td>
       </tr>
       <tr>
           <td>growl</td>
           <td>Growl Mac OS X Notification Service</td>
           <td></td>
           <td></td>
       </tr>
       <tr>
           <td>notify-send</td>
           <td>Notify Ubuntu Notification Service</td>
           <td></td>
           <td>You need to have notify-send installed for this. Run <literal>sudo apt-get install libnotify-bin</literal>
               on Ubuntu to install it.</td>
       </tr>
   </table>

    <section>
        <title>Tasks</title>
        <para>TBD</para>
    </section>

    <section>
        <title>Project layout</title>
        <para>TBD</para>
    </section>

    <section>
        <title>Dependency management</title>
        <para>TBD</para>
    </section>

    <section>
        <title>Convention properties</title>

        <para>The announce plugin adds an 
	
	TBD
        </para>
     
        <para>
        	

        </para>
      <!--  <sample id="anouncePlugin" dir="userguide/tutorial/announce" title="example of annunce plugin usage.">
            <sourcefile file="build.gradle" snippet="full-example"/> 
        </sample>-->
        <para>
	TBD
	</para>
    </section>
</chapter>
