raven 1.1 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/raven/deps_tasks.rb +15 -13
- data/lib/raven/java_tasks.rb +3 -3
- metadata +2 -2
data/lib/raven/deps_tasks.rb
CHANGED
@@ -62,20 +62,22 @@ module Raven
|
|
62
62
|
super
|
63
63
|
ambiguous, notfound = [], []
|
64
64
|
# Installing missing Gems (if there are)
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
65
|
+
if @deps
|
66
|
+
@gem_deps = @deps.flatten.collect do |dep|
|
67
|
+
# Wrapping in an array, we might not have an array with version
|
68
|
+
# as dependency.
|
69
|
+
deparr = dep.respond_to?(:to_a) ? dep.to_a.flatten : [dep]
|
70
|
+
begin
|
71
|
+
Raven::GemInstaller.install_or_not(*deparr)
|
72
|
+
rescue GemNotFoundException => gnfe
|
73
|
+
notfound << gnfe.message
|
74
|
+
rescue AmbiguousGemException => age
|
75
|
+
ambiguous << age
|
76
|
+
end
|
77
|
+
end
|
78
|
+
unless notfound.empty? && ambiguous.empty?
|
79
|
+
raise(RuntimeError, notfound.join($/) + $/ + ambiguous.join($/))
|
75
80
|
end
|
76
|
-
end
|
77
|
-
unless notfound.empty? && ambiguous.empty?
|
78
|
-
raise(RuntimeError, notfound.join($/) + $/ + ambiguous.join($/))
|
79
81
|
end
|
80
82
|
end
|
81
83
|
|
data/lib/raven/java_tasks.rb
CHANGED
@@ -58,7 +58,7 @@ module Raven
|
|
58
58
|
source_files = @build_path.collect do |d|
|
59
59
|
Dir.glob("#{d}/**/*.java").select do |java|
|
60
60
|
classfile = 'target/classes/' + java[d.length, (java.length - 5 - d.length)] + '.class'
|
61
|
-
File.exist?(classfile) ? File.stat(java).
|
61
|
+
File.exist?(classfile) ? File.stat(java).mtime > File.stat(classfile).mtime : true
|
62
62
|
end
|
63
63
|
end.flatten
|
64
64
|
|
@@ -67,8 +67,8 @@ module Raven
|
|
67
67
|
source_pkg = Set.new
|
68
68
|
source_files.each { |src| source_pkg << File.join(File.dirname(src), '*.java') }
|
69
69
|
# Executing javac
|
70
|
-
puts "javac -
|
71
|
-
`javac -
|
70
|
+
puts "javac -classpath "#{classpath.join(CP_SEP)}" -sourcepath "#{@build_path.join(CP_SEP)}" -d target/classes #{source_pkg.to_a.join(' ')}" if RakeFileUtils.verbose_flag
|
71
|
+
`javac -classpath "#{classpath.join(CP_SEP)}" -sourcepath "#{@build_path.join(CP_SEP)}" -d target/classes #{source_pkg.to_a.join(' ')}`
|
72
72
|
unless $? == 0
|
73
73
|
puts "Build failed, see above errors."
|
74
74
|
exit
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
|
|
3
3
|
specification_version: 1
|
4
4
|
name: raven
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version:
|
7
|
-
date: 2006-11-
|
6
|
+
version: 1.1.1
|
7
|
+
date: 2006-11-11 00:00:00 -08:00
|
8
8
|
summary: Java build system based on Rake and Gem.
|
9
9
|
require_paths:
|
10
10
|
- lib
|