Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

Question about simple nested text elements

scabbage

2010-02-04

Replies: Find Java Web Hosting

Author LoginPost Reply

I'm trying to create my own customized task in Ant 1.7.1. I would like to use
my task this way:

<mytask a="blah" b="foo">
 <things>
   <thing>xxx</thing>
   <thing>yyy</thing>
   <thing>zzz</thing>
 </things>
</mytask>

My class looks like:

public class MyTask extends Task {
 private String a;
 private String b;
 private List<String> things = new ArrayList<String>();

 // setting and gettings for a and b ...

 public void execute() {
   // loop through things
 }

}

Now can anyone tell me how I should right the setter for "things"? The Ant
doc is very vague about simple nested text elements.

Thanks.

David
--
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.