Skip to content

Commit 5bb9c97

Browse files
committed
Export the selenium html runner as a binary
This allows people not familiar with selenium or java to make use of the new table runner. Please enter the commit message for your changes. Lines starting
1 parent d7aec31 commit 5bb9c97

File tree

2 files changed

+9
-8
lines changed
  • java/server/src/org/openqa/selenium/server/htmlrunner

2 files changed

+9
-8
lines changed

Rakefile

+8-7
Original file line numberDiff line numberDiff line change
@@ -507,17 +507,17 @@ end
507507

508508
task :release => JAVA_RELEASE_TARGETS + [
509509
# Until we mananage to migrate to Buck entirely.
510-
'//java/server/src/org/openqa/grid/selenium:selenium',
511-
'//java/server/src/org/openqa/grid/selenium:selenium:zip',
512510
'//java/client/src/org/openqa/selenium:client-combined:zip',
511+
'//java/server/src/org/openqa/grid/selenium:selenium:zip',
512+
'//java/server/src/org/openqa/selenium/server/htmlrunner:selenium-runner',
513513
] do |t|
514514
puts t.prerequisites.join(', ')
515515

516-
t.prerequisites.each do |p|
517-
if JAVA_RELEASE_TARGETS.include?(p)
518-
Buck::buck_cmd.call('publish', ['--dry-run', '--remote-repo', 'https://oss.sonatype.org/service/local/staging/deploy/maven2', p])
519-
end
520-
end
516+
# t.prerequisites.each do |p|
517+
# if JAVA_RELEASE_TARGETS.include?(p)
518+
# Buck::buck_cmd.call('publish', ['--dry-run', '--remote-repo', 'https://oss.sonatype.org/service/local/staging/deploy/maven2', p])
519+
# end
520+
# end
521521

522522
mkdir_p "build/dist"
523523
cp Rake::Task['//java/server/src/org/openqa/grid/selenium:selenium'].out, "build/dist/selenium-server-standalone-#{version}.jar"
@@ -527,6 +527,7 @@ task :release => JAVA_RELEASE_TARGETS + [
527527
cp Rake::Task['//java/client/src/org/openqa/selenium:client-combined:zip'].out, "build/dist/selenium-java-#{version}.zip"
528528
`jar uf build/dist/selenium-java-#{version}.zip NOTICE LICENSE`
529529
`cd java && jar uf ../build/dist/selenium-server-#{version}.zip CHANGELOG`
530+
cp Rake::Task['//java/server/src/org/openqa/selenium/server/htmlrunner:selenium-runner'].out, "build/dist/selenium-html-runner-#{version}.jar"
530531
end
531532

532533
def read_user_pass_from_m2_settings

java/server/src/org/openqa/selenium/server/htmlrunner/BUCK

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
java_binary(
2-
name = 'main',
2+
name = 'selenium-runner',
33
main_class = 'org.openqa.selenium.server.htmlrunner.HTMLLauncher',
44
deps = [
55
':htmlrunner',

0 commit comments

Comments
 (0)