Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@jakarta.apache.org Received: (qmail 3231 invoked by uid 500); 18 Oct 2001 21:13:31 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Reply-To: ant-user@jakarta.apache.org Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 3205 invoked from network); 18 Oct 2001 21:13:31 -0000 Message-ID: <096a01c1581a$7f839b90$8b00000a@TariqM> From: "T Master" To: References: Subject: Re: MyVeryOwnTask Date: Thu, 18 Oct 2001 15:18:56 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Christine, I'll email you directly a task i wrote on accepting a FileSet object. I'll just remove all the other code first. T Master ----- Original Message ----- From: To: Sent: Thursday, October 18, 2001 2:20 PM Subject: MyVeryOwnTask > > Hi guys, > > How do I acutally implement this in a build.xml file? > > ----------------------------------------------------------------- > import org.apache.tools.ant.BuildException; > import org.apache.tools.ant.Task; > import java.util.*; > > public class MyVeryOwnTask extends Task { > private String msg; > > > // The method executing the task > public void execute() throws BuildException { > System.out.println(msg); > } > > // The setter for the "message" attribute > public void setMessage(String msg) { > this.msg = msg; > } > } > ------------------------------------------------------------------- > > I know I put this in my init target: classname="MyVeryOwnTask"/> > but I'm not sure where I specify the actual 'msg' that I want to print out > to the screen, except that now > I can do this: > > thanks >