Skip to content

Commit

Permalink
[java] Fixing javadocs generation
Browse files Browse the repository at this point in the history
  • Loading branch information
barancev committed Mar 22, 2020
1 parent c6a1c67 commit 24e9a3a
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
12 changes: 9 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -292,14 +292,20 @@ ie_generator.generate_type_mapping(
out: 'cpp/iedriver/IEReturnTypes.h'
)

task javadocs: %i[common firefox ie remote support chrome selenium] do
task javadocs: [
:"selenium-java",
:"_javadocs"
]

task _javadocs: %i[common firefox ie remote support chrome selenium] do
rm_rf 'build/javadoc'
mkdir_p 'build/javadoc'
sourcepath = ''
classpath = '.'
Dir['third_party/java/*/*.jar'].each do |jar|
Dir['bazel-bin/external/maven/v1/https/repo1.maven.org/maven2/**/*.jar'].each do |jar|
classpath << ':' + jar unless jar.to_s =~ /.*-src.*\.jar/
end
classpath << ':bazel-bin/java/client/src/org/openqa/selenium/devtools/libcdp.jar'
[File.join(%w[java client src])].each do |m|
sourcepath += File::PATH_SEPARATOR + m
end
Expand All @@ -309,7 +315,7 @@ task javadocs: %i[common firefox ie remote support chrome selenium] do

p sourcepath
cmd = "javadoc -notimestamp -d build/javadoc -sourcepath #{sourcepath} -classpath #{classpath} -subpackages org.openqa.selenium -subpackages com.thoughtworks "
cmd << ' -exclude org.openqa.selenium.internal.selenesedriver:org.openqa.selenium.internal.seleniumemulation:org.openqa.selenium.remote.internal'
cmd << ' -exclude org.openqa.selenium.tools.modules'

if SeleniumRake::Checks.windows?
cmd = cmd.gsub(/\//, '\\').gsub(/:/, ';')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ protected int getDefaultPort() {
* @param url the baseUrl for your tests
* @param browserString the browser to use, e.g. *firefox
* @param port the port that you want to run your tests on
* @throws Exception exception all the things!
*/
public void setUp(String url, String browserString, int port) {
if (url == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ public void setUp(String url, String browserString) throws Exception {
* @param url the baseUrl for your tests
* @param browserString the browser to use, e.g. *firefox
* @param port the port of Selenium RC
* @throws Exception yep, generic Exception
*/
public void setUp(String url, String browserString, int port) {
stb.setUp(url, browserString, port);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

/**
* A credential stored in a virtual authenticator.
* @see https://w3c.github.io/webauthn/#credential-parameters
* @see <a href="https://w3c.github.io/webauthn/#credential-parameters">https://w3c.github.io/webauthn/#credential-parameters</a>
*/
public class Credential {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

/**
* Options for the creation of virtual authenticators.
* @see https://w3c.github.io/webauthn/#sctn-automation
* @see <a href="https://w3c.github.io/webauthn/#sctn-automation">https://w3c.github.io/webauthn/#sctn-automation</a>
*/
public class VirtualAuthenticatorOptions {

Expand Down

0 comments on commit 24e9a3a

Please sign in to comment.