[jboss-dev-forums] [Design of JBoss internal QA (Test Suite)] - JBAS-3704 Add a notion of available interfaces to org.jboss.

mvecera@redhat.com do-not-reply at jboss.com
Tue Apr 17 04:52:12 EDT 2007


Please see file attached to related issue. There can be found sources for new Ant task <server:addresses> which works as follows:

Input attributes: ${env} - environment properties prefix with preset addresses, if not set no preset values are used, ${prop} - new properties prefix, prefix is extended by number 0..n, ${ifaces} - number of interfaces to find, if there is not enough interfaces an exception is thrown.

x = 1;
  | while (${env} <> "" && MYTESTIP_x <> "") {
  |   ${prop} + (x - 1) = MYTESTIP_x; // this means for ex. jboss.server.iface.(x - 1) = ...
  |   x++;
  | }
  | while (x <= ${ifaces}) {
  |   ${prop} + (x - 1) = fetch_next_interface_from_NetworkInterface();
  |   x++;
  | } 
  | 

Example of use can be found in commets to issue JBAS-3704.

Is this right? Can I commit it to SVN?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037881#4037881

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037881



More information about the jboss-dev-forums mailing list