NNTPTask

Description
Send a message to a news server.

To use this as an ANT task, you will need to add a taskdef to your build file:

<taskdef name="nntp" classname="com.deaded.ant.NNTPTask"
	classpath="commonAntTasks.jar"/>

Parameters
Attribute Description Required
server The news server to send to Yes
group The group to send to Yes
email The email address of where to reply to Yes
author The name of the sender Yes
subject Subject line for the message Yes
text The actual message Yes

Example

<nntp server="news.mycompany.com" group="alt.test" email="a.person@mycompany.com"
    author="A Person" subject="Test post" text="Hello, I am testing"/>

How to setup a multiline message

<property name="page.url" value="http://www.mycompany.com/common_components/"/>
<property name="line1" value="Component: $"/>
<property name="line2" value="Label: $"/>
<property name="line3" value=""/>
<property name="line4" value="changeHistory: $$/ChangeHistory.txt"/>
<property name="line5" value="Component pages: $$/index.html"/>
<property name="line6" value=""/>
<property name="line7" value="Our pages: $"/>

<!-- This is then the property to pass through to the nntp text attribute -->
<property name="nntp.text" value="$\n$\n$\n$\n$\n$\n$"/>


DeadEd.com
http://www.deaded.com/staticpages/index.php/nntptask