<goal name="init">Thanks, Pete.
<!-- Create a property object --> <j:new var="component1" className="java.util.Properties"/> <j:set var="dummy" value="${component1.setProperty('dir', 'directory1')}"/> <j:set var="dummy" value="${component1.setProperty('name', 'name1')}"/>
<!-- Create another property object -->
<j:new var="component2" className="java.util.Properties"/> <j:set var="dummy" value="${component2.setProperty('dir', 'directory2')}"/>
<j:set var="dummy" value="${component2.setProperty('name', 'name2')}"/>
<!-- Save the property objects into a list -->
<j:new var="components" className="java.util.ArrayList"/> <j:set var="dummy" value="${components.add(component1)}"/>
<j:set var="dummy" value="${components.add(component2)}"/>
</goal>
<goal name="process" prereqs="init">
<!-- Iterator over the list we created in the 'init' goal --> <j:forEach var="component" items="${components}"> <echo> component.dir = ${component.dir} component.name = ${component.name} </echo> </j:forEach> </goal>
Hope that helps.
-Pete
This helps a tremendous lot. It will work beautifully.
Kind regards,
--
Theunis de Jongh
EPI-USE Systems (Pty) Ltd. "We make you shine!"
http://www.epiuse.com
mailto:[EMAIL PROTECTED]
switchboard : (012) 368-8400 direct line : (012) 368-8481
fax : (012) 348-2709
cell : (082) 653 1535
This message may contain information that is proprietary or confidential and is intended only for the addressee named above. If you are not the addressee or authorized to receive this message for the addressee, you may not use, copy or disclose to anyone this message or its contents. If you have received this message in error, please notify me immediately and permanently destroy any copies you may have.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
