buildr 0.18.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: buildr
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.18.0
7
- date: 2007-03-30 00:00:00 -07:00
6
+ version: 0.19.0
7
+ date: 2007-04-13 00:00:00 -07:00
8
8
  summary: A build system that doesn't suck
9
9
  require_paths:
10
10
  - lib
@@ -35,18 +35,20 @@ files:
35
35
  - lib/java
36
36
  - lib/tasks/download.rb
37
37
  - lib/tasks/filter.rb
38
+ - lib/tasks/concat.rb
38
39
  - lib/tasks/zip.rb
39
- - lib/core/core.rb
40
40
  - lib/core/transports.rb
41
41
  - lib/core/build.rb
42
- - lib/core/artifact.rb
43
42
  - lib/core/project.rb
43
+ - lib/core/rake_ext.rb
44
44
  - lib/java/test.rb
45
45
  - lib/java/eclipse.rb
46
46
  - lib/java/jetty.rb
47
47
  - lib/java/xmlbeans.rb
48
48
  - lib/java/java.rb
49
+ - lib/java/ant.rb
49
50
  - lib/java/javacc.rb
51
+ - lib/java/artifact.rb
50
52
  - lib/java/packaging.rb
51
53
  - lib/java/openjpa.rb
52
54
  - lib/java/compile.rb
@@ -82,7 +84,7 @@ dependencies:
82
84
  version_requirement:
83
85
  version_requirements: !ruby/object:Gem::Version::Requirement
84
86
  requirements:
85
- - - ">="
87
+ - - "="
86
88
  - !ruby/object:Gem::Version
87
89
  version: 0.7.2
88
90
  version:
@@ -140,3 +142,21 @@ dependencies:
140
142
  - !ruby/object:Gem::Version
141
143
  version: 1.2.7
142
144
  version:
145
+ - !ruby/object:Gem::Dependency
146
+ name: rjb
147
+ version_requirement:
148
+ version_requirements: !ruby/object:Gem::Version::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: 1.0.3
153
+ version:
154
+ - !ruby/object:Gem::Dependency
155
+ name: Antwrap
156
+ version_requirement:
157
+ version_requirements: !ruby/object:Gem::Version::Requirement
158
+ requirements:
159
+ - - ">="
160
+ - !ruby/object:Gem::Version
161
+ version: 0.5.0
162
+ version:
data/lib/core/core.rb DELETED
@@ -1,155 +0,0 @@
1
- require "highline"
2
-
3
-
4
- module Kernel
5
- def warn_with_color(message)
6
- warn_without_color HighLine.new.color(message.to_s, :red)
7
- end
8
- alias_method_chain :warn, :color
9
- end
10
-
11
-
12
- module Buildr
13
- module Attributes
14
-
15
- def self.included(mod)
16
- mod.extend(self)
17
- end
18
-
19
- # An inherited attribute gets it value from an instance variable
20
- # with the same name. If the value is not set it will defer to the
21
- # parent object. If there is no parent object, it will use the
22
- # default value; with a block, it evaluates the block by calling
23
- # instance_eval on the object.
24
- #
25
- # For example:
26
- # inherited_attr :version
27
- # inherited_attr :src_dir, "src"
28
- # inherited_attr :java_src_dir do src_dir + "/main/java"
29
- def inherited_attr(symbol, default = nil, &block)
30
- block ||= proc { default }
31
- attr_accessor symbol
32
- define_method "#{symbol}_with_inheritence" do
33
- unless value = send("#{symbol}_without_inheritence")
34
- value = parent ? parent.send(symbol) : self.instance_eval(&block)
35
- send "#{symbol}=", value
36
- end
37
- value
38
- end
39
- alias_method_chain symbol, :inheritence
40
- end
41
- end
42
-
43
- end
44
-
45
- class Rake::Task
46
- def invoke
47
- tasks = (Thread.current[:tasks] || [])
48
- if tasks.include?(name)
49
- fail "Circular dependency " + (tasks + [name]).join("=>")
50
- end
51
- @lock.synchronize do
52
- if application.options.trace
53
- puts "** Invoke #{name} #{format_trace_flags}"
54
- end
55
- return if @already_invoked
56
- begin
57
- Thread.current[:tasks] = tasks + [name]
58
- @already_invoked = true
59
- invoke_prerequisites
60
- execute if needed?
61
- ensure
62
- Thread.current[:tasks] = tasks
63
- end
64
- end
65
- end
66
- end
67
-
68
- class Rake::Task
69
-
70
- # Access the base directory. The base directory is set when the class
71
- # is defined from the current directory. The current directory is set
72
- # to the base directory when the class is executed.
73
- attr_accessor :base_dir
74
-
75
- # :nodoc:
76
- def invoke_with_base_dir()
77
- Dir.chdir(@base_dir || Dir.pwd) { invoke_without_base_dir }
78
- end
79
- alias_method_chain :invoke, :base_dir
80
-
81
- # :nodoc:
82
- def initialize_with_base_dir(*args)
83
- @base_dir = Dir.pwd
84
- initialize_without_base_dir *args
85
- end
86
- alias_method_chain :initialize, :base_dir
87
-
88
- end
89
-
90
-
91
- class Rake::Application
92
-
93
- def in_namespace_with_global_scope(name, &block)
94
- if name =~ /^:/
95
- begin
96
- scope, @scope = @scope, name.split(":")[1...-1]
97
- in_namespace_without_global_scope name.split(":").last, &block
98
- ensure
99
- @scope = scope
100
- end
101
- else
102
- in_namespace_without_global_scope name, &block
103
- end
104
- end
105
- alias_method_chain :in_namespace, :global_scope
106
-
107
- end
108
-
109
-
110
- class CheckTask < Rake::Task
111
-
112
- def execute()
113
- @warnings = []
114
- super
115
- report if verbose
116
- end
117
-
118
- def note(*msg)
119
- @warnings += msg
120
- end
121
-
122
- def report()
123
- if @warnings.empty?
124
- puts HighLine.new.color("No warnings", :green)
125
- else
126
- warn "These are possible problems with your Rakefile"
127
- @warnings.each { |msg| warn " #{msg}" }
128
- end
129
- end
130
-
131
- end
132
-
133
-
134
- desc "Check your Rakefile for common errors"
135
- CheckTask.define_task "check"
136
-
137
- # Check for circular dependencies
138
- task "check" do
139
- depends = {}
140
- expand = lambda do |stack, checking|
141
- if depends[checking]
142
- if stack.include?(checking)
143
- fail "Circular " + (stack + [checking]).join("=>")
144
- end
145
- else
146
- depends[checking] = []
147
- depends[checking] |= Rake.application[checking].prerequisites.
148
- map { |prereq| expand[stack + [checking.to_s], prereq.to_s] }.flatten.map(&:to_s)
149
- end
150
- depends[checking]
151
- end
152
- Rake.application.tasks.each do |checking|
153
- expand[ [], checking.to_s ]
154
- end
155
- end