Created
August 6, 2019 12:09
-
-
Save shs96c/055036bdf0d5db06cf1d68d6f696321f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "rake/task" | |
module Bazel | |
class BazelTask < Rake::Task | |
def needed? | |
true | |
end | |
def invoke(*args) | |
puts "Invoked!" | |
end | |
end | |
end | |
module Rake::DSL | |
def bazel(*args, &block) | |
Bazel::BazelTask.define_task(*args, &block) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This fails when using the following in a
Rakefile
and./go
with the message:
Don't know how to build task '//java/client/org/openqa/selenium:core'
.On the command line with rake 12, the same code is just fine.