Skip to content

Commit

Permalink
Splitting distribution artifacts to RC (leg-rc) and WebDriver (seleni…
Browse files Browse the repository at this point in the history
…um-java) parts
  • Loading branch information
barancev committed Nov 12, 2014
1 parent 9717e65 commit 53863e7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
7 changes: 5 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -477,10 +477,11 @@ desc "Generate a single file with WebDriverJS' public API"
task :webdriverjs => [ "//javascript/webdriver:webdriver" ]

task :release => [
:clean,
# :clean,
'//java/server/src/org/openqa/selenium/server:server:zip',
'//java/server/src/org/openqa/grid/selenium:selenium:zip',
'//java/client/src/org/openqa/selenium:client-combined:zip',
'//java/client/src/com/thoughtworks/selenium:leg-rc:zip',
] do |t|
# Unzip each of the deps and rename the pieces that need renaming
renames = {
Expand Down Expand Up @@ -520,6 +521,7 @@ task :release => [
cp "build/java/server/src/org/openqa/grid/selenium/selenium-standalone.jar", "build/dist/selenium-server-standalone-#{version}.jar"
cp "build/java/server/src/org/openqa/grid/selenium/selenium.zip", "build/dist/selenium-server-#{version}.zip"
cp "build/java/client/src/org/openqa/selenium/client-combined.zip", "build/dist/selenium-java-#{version}.zip"
cp "build/java/client/src/com/thoughtworks/selenium/leg-rc-standalone.jar", "build/dist/leg-rc-#{version}.jar"
end

task :push_release => [:release] do
Expand All @@ -536,7 +538,8 @@ task :push_release => [:release] do
[
{:file => "build/dist/selenium-server-standalone-#{version}.jar", :description => "Use this if you want to use the Selenium RC or Remote WebDriver or use Grid 2 without needing any additional dependencies"},
{:file => "build/dist/selenium-server-#{version}.zip", :description => "All variants of the Selenium Server: stand-alone, jar with dependencies and sources."},
{:file => "build/dist/selenium-java-#{version}.zip", :description => "The Java bindings for Selenium 2, including the WebDriver API and the Selenium RC clients. Download this if you plan on just using the client-side pieces of Selenium"}
{:file => "build/dist/selenium-java-#{version}.zip", :description => "The Java bindings for Selenium 2, including the WebDriver API clients. Download this if you want to use WebDriver API"},
{:file => "build/dist/leg-rc-#{version}.jar", :description => "The Java bindings for Selenium 1, including the RC API clients. Download this if you want to use RC API"},
].each do |file|
puts "Uploading file #{file[:file]}..."
sh "#{py} third_party/py/googlecode/googlecode_upload.py -s '#{file[:description]}' -p selenium #{file[:file]} -l Featured -u #{googlecode_username} -w #{googlecode_password}"
Expand Down
6 changes: 6 additions & 0 deletions java/client/src/com/thoughtworks/selenium/build.desc
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
java_library(name = "leg-rc",
deps = [
":api",
":selenium",
])

java_library(name = "api",
srcs = [
"CommandProcessor.java",
Expand Down
3 changes: 0 additions & 3 deletions java/client/src/org/openqa/selenium/build.desc
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,12 @@ java_library(name = "webdriver-api",

java_library(name = "client-combined",
deps = [
"//java/client/src/com/thoughtworks/selenium:selenium",
"//java/client/src/com/thoughtworks/selenium/webdriven:webdriven",
"//java/client/src/org/openqa/selenium/chrome",
"//java/client/src/org/openqa/selenium/htmlunit",
"//java/client/src/org/openqa/selenium/firefox",
"//java/client/src/org/openqa/selenium/ie",
"//java/client/src/org/openqa/selenium/remote",
"//java/client/src/org/openqa/selenium/safari",
"//java/client/src/com/thoughtworks/selenium:api",
"//java/client/src/org/openqa/selenium/support",
"//java/client/src/org/openqa/selenium/remote:augmenter",
"//third_party/java/opera-driver",
Expand Down

0 comments on commit 53863e7

Please sign in to comment.