Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
ruby-build
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ruby-build
Commits
060f50fc
Commit
060f50fc
authored
Feb 17, 2014
by
Colin Mattson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve Java 7 detection
Java on most (all?) platforms directs `-version` output to STDERR.
parent
229bf9b0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
bin/ruby-build
+1
-1
test/build.bats
+2
-2
No files found.
bin/ruby-build
View file @
060f50fc
...
@@ -583,7 +583,7 @@ fix_rbx_irb() {
...
@@ -583,7 +583,7 @@ fix_rbx_irb() {
}
}
require_java7
()
{
require_java7
()
{
local
version
=
"
$(
java
-version
2>
/dev/null
| head
-1
)
"
local
version
=
"
$(
java
-version
2>
&1
| head
-1
)
"
if
[[
$version
!=
*
1.[789]
*
]]
;
then
if
[[
$version
!=
*
1.[789]
*
]]
;
then
colorize 1
"ERROR"
>
&3
colorize 1
"ERROR"
>
&3
echo
": Java 7 required. Please install a 1.7-compatible JRE."
>
&3
echo
": Java 7 required. Please install a 1.7-compatible JRE."
>
&3
...
...
test/build.bats
View file @
060f50fc
...
@@ -438,7 +438,7 @@ OUT
...
@@ -438,7 +438,7 @@ OUT
@test "JRuby Java is outdated" {
@test "JRuby Java is outdated" {
cached_tarball "jruby-9000.dev" bin/jruby
cached_tarball "jruby-9000.dev" bin/jruby
stub java '-version : echo java version "1.6.0_21"'
stub java '-version : echo java version "1.6.0_21"
>&2
'
run_inline_definition <<DEF
run_inline_definition <<DEF
require_java7
require_java7
...
@@ -452,7 +452,7 @@ OUT
...
@@ -452,7 +452,7 @@ OUT
@test "JRuby Java 7 up-to-date" {
@test "JRuby Java 7 up-to-date" {
cached_tarball "jruby-9000.dev" bin/jruby
cached_tarball "jruby-9000.dev" bin/jruby
stub java '-version : echo java version "1.7.0_21"'
stub java '-version : echo java version "1.7.0_21"
>&2
'
run_inline_definition <<DEF
run_inline_definition <<DEF
require_java7
require_java7
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment