Fail when rc.environment is not set with a suitable message. Also fail if rc.host and rc.port are not set even though these now have default values.

This commit is contained in:
Dave Hunt 2011-08-18 17:11:26 +01:00
Родитель 1a5f7b4f8f
Коммит 1945fd948e
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -51,7 +51,9 @@
</target>
<target name="launch-remote-control-with-custom-profile" depends="check-for-custom-profile" if="use.custom.profile">
<fail unless="rc.host" message="Property rc.host must be set in ${env.HOSTNAME}.project.properties" />
<fail unless="rc.host" message="Property rc.host must be set in ${env.HOSTNAME}.project.properties" />
<fail unless="rc.port" message="Property rc.port must be set in ${env.HOSTNAME}.project.properties" />
<fail unless="rc.environment" message="Property rc.environment must be set on the command line. Example: -Drc.environment='Firefox Beta on Mac OS X'" />
<java classpathref="remote-control.classpath"
classname="com.thoughtworks.selenium.grid.remotecontrol.SelfRegisteringRemoteControlLauncher"
fork="true"
@ -73,6 +75,9 @@
</target>
<target name="launch-remote-control-without-custom-profile" depends="check-for-custom-profile" unless="use.custom.profile">
<fail unless="rc.host" message="Property rc.host must be set in ${env.HOSTNAME}.project.properties" />
<fail unless="rc.port" message="Property rc.port must be set in ${env.HOSTNAME}.project.properties" />
<fail unless="rc.environment" message="Property rc.environment must be set on the command line. Example: -Drc.environment='Firefox Beta on Mac OS X'" />
<java classpathref="remote-control.classpath"
classname="com.thoughtworks.selenium.grid.remotecontrol.SelfRegisteringRemoteControlLauncher"
fork="true"