Changing port number of a server(selenium-server.jar) through ant?

View: New views
3 Messages — Rating Filter:   Alert me  

Changing port number of a server(selenium-server.jar) through ant?

by rahulrocks :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have changed the port number of selenium server in command line like this
java -jar selenium-server.jar -port 4445

How to change the port number of a server(selenium-server.jar) through ant script?

<target name="start-server">
     <java jar="lib/selenium-server.jar" fork="true">
   <arg line="-timeout 30"/>
     </java>
     </target>

Please help.

Re: Changing port number of a server(selenium-server.jar) through ant?

by Andy Stevens-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2008/7/9 rahulrocks <rahulindiarocks@...>:

>
> I have changed the port number of selenium server in command line like this
> java -jar selenium-server.jar -port 4445
>
> How to change the port number of a server(selenium-server.jar) through ant
> script?
>
> <target name="start-server">
>            <java jar="lib/selenium-server.jar" fork="true">
>                  <arg line="-timeout 30"/>
>            </java>
>     </target>
>
> Please help.

I've not used Selenium myself, but based on your java command, have
you tried simply adding a second arg element
                  <arg line="-port 4445"/>
?


Andy.
--
http://pseudoq.sourceforge.net/  Open source Sudoku application

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...


Re: Changing port number of a server(selenium-server.jar) through ant?

by rahulrocks :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Andy,

It works.

Andy Stevens-2 wrote:
2008/7/9 rahulrocks <rahulindiarocks@yahoo.com>:
>
> I have changed the port number of selenium server in command line like this
> java -jar selenium-server.jar -port 4445
>
> How to change the port number of a server(selenium-server.jar) through ant
> script?
>
> <target name="start-server">
>            <java jar="lib/selenium-server.jar" fork="true">
>                  <arg line="-timeout 30"/>
>            </java>
>     </target>
>
> Please help.

I've not used Selenium myself, but based on your java command, have
you tried simply adding a second arg element
                  <arg line="-port 4445"/>
?


Andy.
--
http://pseudoq.sourceforge.net/  Open source Sudoku application

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
LightInTheBox - Buy quality products at wholesale price