[
https://issues.apache.org/jira/browse/BUILDR-303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12924277#action_12924277
]
Alex Boisvert commented on BUILDR-303:
--------------------------------------
Gerolf, just to clarify, there are normally 2 "buildr" executables installed
via rubygems
1) /usr/bin/buildr (exact path location may vary)
This version dispatches to the version specified using the _1.4.3_ syntax, if
specified, and contains the following code:
--- start ---
#!/usr/bin/ruby1.8
#
# This file was generated by RubyGems.
#
# The application 'buildr' is installed as part of a gem, and
# this file is here to facilitate running it.
#
require 'rubygems'
version = ">= 0"
if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then
version = $1
ARGV.shift
end
gem 'buildr', version
load Gem.bin_path('buildr', 'buildr', version)
--- end ---
2) /usr/lib/ruby/gems/1.8/gems/buildr-1.4.3/bin/buildr
This file is the buildr bootstrap and is called by the preceeding one.
--- start ---
#!/usr/bin/env ruby
# Licensed to the Apache Software Foundation (ASF) under one or more
# ...
require 'rubygems'
require 'buildr'
Buildr.application.run
--- end ---
The first file should be on your PATH and should be the one run by buildr
during the release. The second one shouldn't be on the PATH and is usually
called indirectly.
Also, you may want to make sure your RUBYPATH environment variable is empty (at
is usually is).
> Release task assumes _1.3.4_ command-line argument convention works across
> platforms
> ------------------------------------------------------------------------------------
>
> Key: BUILDR-303
> URL: https://issues.apache.org/jira/browse/BUILDR-303
> Project: Buildr
> Issue Type: Bug
> Components: Core features
> Affects Versions: 1.3.4
> Reporter: Alex Boisvert
>
> Joel Muzzerall reported:
> I am trying to run
> buildr release
> but it produces this error:
> /usr/bin/ruby1.8 -S buildr _1.3.4_ --buildfile *snip* --environment
> development clean upload DEBUG=no
> (in *snip*, development)
> Buildr aborted!
> Don't know how to build task '_1.3.4_'
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.