geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r439685 - /geronimo/server/trunk/maven-plugins/selenium-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/selenium/StartServerMojo.java
Date Sat, 02 Sep 2006 23:21:32 GMT
Author: jdillon
Date: Sat Sep  2 16:21:31 2006
New Revision: 439685

URL: http://svn.apache.org/viewvc?rev=439685&view=rev
Log:
Support -debug, -port and -timeout arguments to the selenium server

Modified:
    geronimo/server/trunk/maven-plugins/selenium-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/selenium/StartServerMojo.java

Modified: geronimo/server/trunk/maven-plugins/selenium-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/selenium/StartServerMojo.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/maven-plugins/selenium-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/selenium/StartServerMojo.java?rev=439685&r1=439684&r2=439685&view=diff
==============================================================================
--- geronimo/server/trunk/maven-plugins/selenium-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/selenium/StartServerMojo.java
(original)
+++ geronimo/server/trunk/maven-plugins/selenium-maven-plugin/src/main/java/org/apache/geronimo/mavenplugins/selenium/StartServerMojo.java
Sat Sep  2 16:21:31 2006
@@ -42,6 +42,28 @@
 public class StartServerMojo
     extends AntMojoSupport
 {
+    /**
+     * The port number the server will use.
+     *
+     * @parameter default-value="4444"
+     */
+    private int port;
+    
+    /**
+     * Timeout for the server in seconds.
+     *
+     * @parameter default-value="-1"
+     */
+    private int timeout;
+    
+    
+    /**
+     * Enable the server's debug mode..
+     *
+     * @parameter default-value="false"
+     */
+    private boolean debug;
+    
     //
     // MojoSupport Hooks
     //
@@ -127,6 +149,16 @@
                     exec.setExecutable(executable);
                     exec.createArg().setValue("-jar");
                     exec.createArg().setFile(artifact.getFile());
+                    exec.createArg().setValue("-port");
+                    exec.createArg().setValue(String.valueOf(port));
+                    if (debug) {
+                        exec.createArg().setValue("-debug");
+                    }
+                    if (timeout > 0) {
+                        exec.createArg().setValue("-timeout");
+                        exec.createArg().setValue(String.valueOf(timeout));
+                    }
+                    
                     exec.setLogError(true);
                     exec.execute();
 



Mime
View raw message