rake-ant 1.0.1 → 1.0.5
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.
- checksums.yaml +4 -4
- data/lib/rake/ant/ant.rb +6 -5
- data/lib/rake/ant/element.rb +1 -1
- data/lib/rake/ant/project_converter.rb +1 -1
- data/lib/rake/ant/target.rb +1 -1
- data/lib/rake/ant/version.rb +1 -1
- data/lib/rake/ant.rb +4 -0
- metadata +7 -12
- data/.gitignore +0 -9
- data/Gemfile +0 -6
- data/Rakefile +0 -9
- data/rake-ant.gemspec +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 258d246fd595a29dbb2971125aa82761e10583b6ddfa0709aedf74a238218df0
|
4
|
+
data.tar.gz: 11c3a10ce8fc23cee7daa58d27c732f5d0c1c589b96e5b9348cec1fd503a400b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9065275c736904ff2ce8929e770dd2664ad4f3eac113cb039b636f37703564b34416a0e563daa4088afe60139a035471faf89fe782c3312b61b409e3532a684a
|
7
|
+
data.tar.gz: '09c0900d19bcdb9b75eb50a2d1631d38633266702295bea3edb04d34b63036543cd14abc2f853cf7c4f757227470f033951fc0ab57621cc5f71f7d185de1fa5e'
|
data/lib/rake/ant/ant.rb
CHANGED
@@ -8,7 +8,7 @@ rescue NameError => ne
|
|
8
8
|
end
|
9
9
|
require 'rake/ant/target'
|
10
10
|
|
11
|
-
class Ant
|
11
|
+
class Rake::Ant
|
12
12
|
java_import org.apache.tools.ant.DefaultLogger
|
13
13
|
java_import org.apache.tools.ant.Location
|
14
14
|
java_import org.apache.tools.ant.Project
|
@@ -40,7 +40,7 @@ class Ant
|
|
40
40
|
# 1. Execute a block as a target: add_target "foo-target" { echo :message => "I am cool" }
|
41
41
|
# 2. Execute a rake task as a target: add_target Rake.application["default"]
|
42
42
|
def add_target(*options, &block)
|
43
|
-
target = options.first.respond_to?(:
|
43
|
+
target = options.first.respond_to?(:prerequisites) ? RakeTarget.new(self, options.first) : BlockTarget.new(self, *options, &block)
|
44
44
|
@project.add_target target
|
45
45
|
end
|
46
46
|
alias target add_target
|
@@ -204,17 +204,18 @@ end
|
|
204
204
|
# ant args
|
205
205
|
#
|
206
206
|
def ant(*args, &block)
|
207
|
-
Ant.ant(*args, &block)
|
207
|
+
Rake::Ant.ant(*args, &block)
|
208
208
|
end
|
209
209
|
|
210
210
|
# Need Rake DSL at top-level for "task" and other methods.
|
211
|
+
require 'rake/dsl_definition'
|
211
212
|
include Rake::DSL
|
212
213
|
|
213
214
|
def ant_import(filename = 'build.xml')
|
214
|
-
ant = Ant.ant
|
215
|
+
ant = Rake::Ant.ant
|
215
216
|
|
216
217
|
abs_name = File.expand_path(filename)
|
217
|
-
Ant::ProjectHelper.configure_project ant.project, java.io.File.new(abs_name)
|
218
|
+
Rake::Ant::ProjectHelper.configure_project ant.project, java.io.File.new(abs_name)
|
218
219
|
|
219
220
|
ant.project.targets.each do |target_name, target|
|
220
221
|
name = Rake.application.lookup(target_name) ? "ant_" + target_name : target_name
|
data/lib/rake/ant/element.rb
CHANGED
data/lib/rake/ant/target.rb
CHANGED
data/lib/rake/ant/version.rb
CHANGED
data/lib/rake/ant.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake-ant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas E Enebo
|
@@ -9,14 +9,14 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2021-12-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1
|
19
|
+
version: '2.1'
|
20
20
|
name: bundler
|
21
21
|
prerelease: false
|
22
22
|
type: :development
|
@@ -24,13 +24,13 @@ dependencies:
|
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '1
|
27
|
+
version: '2.1'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '13.0'
|
34
34
|
name: rake
|
35
35
|
prerelease: false
|
36
36
|
type: :development
|
@@ -38,7 +38,7 @@ dependencies:
|
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '
|
41
|
+
version: '13.0'
|
42
42
|
description:
|
43
43
|
email:
|
44
44
|
- tom.enebo@gmail.com
|
@@ -47,11 +47,8 @@ executables: []
|
|
47
47
|
extensions: []
|
48
48
|
extra_rdoc_files: []
|
49
49
|
files:
|
50
|
-
- ".gitignore"
|
51
|
-
- Gemfile
|
52
50
|
- LICENSE
|
53
51
|
- README.md
|
54
|
-
- Rakefile
|
55
52
|
- lib/ant.rb
|
56
53
|
- lib/rake/ant.rb
|
57
54
|
- lib/rake/ant/ant.rb
|
@@ -61,7 +58,6 @@ files:
|
|
61
58
|
- lib/rake/ant/target.rb
|
62
59
|
- lib/rake/ant/tasks/raketasks.rb
|
63
60
|
- lib/rake/ant/version.rb
|
64
|
-
- rake-ant.gemspec
|
65
61
|
homepage: https://github.com/jruby/rake-ant
|
66
62
|
licenses:
|
67
63
|
- EPL-2.0
|
@@ -81,8 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
77
|
- !ruby/object:Gem::Version
|
82
78
|
version: '0'
|
83
79
|
requirements: []
|
84
|
-
|
85
|
-
rubygems_version: 2.6.13
|
80
|
+
rubygems_version: 3.2.29
|
86
81
|
signing_key:
|
87
82
|
specification_version: 4
|
88
83
|
summary: Ant tasks and integration for Rake
|
data/.gitignore
DELETED
data/Gemfile
DELETED
data/Rakefile
DELETED
data/rake-ant.gemspec
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path("../lib", __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require "rake/ant/version"
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "rake-ant"
|
8
|
-
spec.version = Rake::Ant::VERSION
|
9
|
-
spec.authors = ["Thomas E Enebo", "Charles Oliver Nutter"]
|
10
|
-
spec.email = ["tom.enebo@gmail.com", "headius@headius.com"]
|
11
|
-
|
12
|
-
spec.summary = %q{Ant tasks and integration for Rake}
|
13
|
-
spec.homepage = "https://github.com/jruby/rake-ant"
|
14
|
-
|
15
|
-
spec.license = "EPL-2.0"
|
16
|
-
|
17
|
-
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
|
-
f.match(%r{^(test|spec|features)/})
|
19
|
-
end
|
20
|
-
spec.require_paths = ["lib"]
|
21
|
-
|
22
|
-
spec.add_development_dependency "bundler", "~> 1.15"
|
23
|
-
spec.add_development_dependency "rake", "~> 10.0"
|
24
|
-
end
|