You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by rd...@apache.org on 2008/12/12 12:45:07 UTC

svn commit: r725972 - /james/server/trunk/build-tools/smoke.xml

Author: rdonkin
Date: Fri Dec 12 03:45:07 2008
New Revision: 725972

URL: http://svn.apache.org/viewvc?rev=725972&view=rev
Log:
Define property to set ports once and only once. Callers may now override these as required.

Modified:
    james/server/trunk/build-tools/smoke.xml

Modified: james/server/trunk/build-tools/smoke.xml
URL: http://svn.apache.org/viewvc/james/server/trunk/build-tools/smoke.xml?rev=725972&r1=725971&r2=725972&view=diff
==============================================================================
--- james/server/trunk/build-tools/smoke.xml (original)
+++ james/server/trunk/build-tools/smoke.xml Fri Dec 12 03:45:07 2008
@@ -35,7 +35,7 @@
         <attribute name='name'/>
         <sequential>
             <mpt:mpt port='@{port}' script='../build-tools/@{name}.mpt'>
-                <addUser port='10445' user='user' passwd='passwd'>S: JAMES Remote Administration Tool 3.0-SNAPSHOT
+                <addUser port='${org.apache.james.smoke.port.RemoteManager}' user='user' passwd='passwd'>S: JAMES Remote Administration Tool 3.0-SNAPSHOT
 S: Please enter your login and password
 S: Login id:
 C: root
@@ -66,10 +66,10 @@
                 </classpath>
             </taskdef>  
             
-            <TestProtocol port='10043' name='imap'/>
-            <TestProtocol port='10025' name='smtp'/>
-            <TestProtocol port='10110' name='pop3'/>  
-            <TestProtocol port='10119' name='nntp'/>   
+            <TestProtocol port='${org.apache.james.smoke.port.IMAP}' name='imap'/>
+            <TestProtocol port='${org.apache.james.smoke.port.SMTP}' name='smtp'/>
+            <TestProtocol port='${org.apache.james.smoke.port.POP3}' name='pop3'/>  
+            <TestProtocol port='${org.apache.james.smoke.port.NNTP}' name='nntp'/>   
         </sequential>   
     </macrodef>   
         
@@ -175,11 +175,11 @@
             <echo>Waiting for James to boot...</echo>   
             <waitfor maxwait='60' maxwaitunit='second' timeoutproperty='smoke.boot.failed'>
                 <and>   
-                    <socket server='localhost' port='10025'/>   
-                    <socket server='localhost' port='10110'/>
-                    <socket server='localhost' port='10043'/>
-                    <socket server='localhost' port='10119'/>   
-                    <socket server='localhost' port='10445'/>   
+                    <socket server='localhost' port='${org.apache.james.smoke.port.SMTP}'/>   
+                    <socket server='localhost' port='${org.apache.james.smoke.port.POP3}'/>
+                    <socket server='localhost' port='${org.apache.james.smoke.port.IMAP}'/>
+                    <socket server='localhost' port='${org.apache.james.smoke.port.NNTP}'/>   
+                    <socket server='localhost' port='${org.apache.james.smoke.port.RemoteManager}'/>   
                 </and>   
             </waitfor>   
             <fail if='smoke.boot.failed'>
@@ -225,7 +225,12 @@
             <available file='@{zip}' property="is.packaged"/>
             <fail unless='is.packaged'>
 @{zip} not found. Try 'ant dist'.
-            </fail>  
+            </fail>        
+            <property name='org.apache.james.smoke.port.IMAP' value='10043'/>
+            <property name='org.apache.james.smoke.port.SMTP' value='10025'/>
+            <property name='org.apache.james.smoke.port.POP3' value='10110'/>
+            <property name='org.apache.james.smoke.port.NNTP' value='10119'/>   
+            <property name='org.apache.james.smoke.port.RemoteManager' value='10445'/>
         </sequential>
     </macrodef>   
  



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org