rake-ant 1.0.1 → 1.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 513ac4b1cc7cd514a223d236d02bc2112a94482f15bbad993696ac463cda452a
4
- data.tar.gz: d870aaed59e35be462952fc8bda2c2ce915027e1ec7857c67d8a66abf2cb8275
3
+ metadata.gz: 75b58c8803bfaecaef85f589404e6edac285600a0ba0aa6ea1211025c040a99f
4
+ data.tar.gz: d17baac3e5d84294e39bdffec98bd14c4d529da5b7ff15725ac0a6098aaa4fdd
5
5
  SHA512:
6
- metadata.gz: da2474e501587320b03938a8f5245fb62915b7104711aa1b531cbf364e2c492cf087b4deea3cd0f6bad96a85fd95685c4c2720c135202f35b3ce3b45ffc92273
7
- data.tar.gz: cb30596612194d5bb7e52b9da26162674aa188ba2963b865999502b79838d937cb662099a5d4252cd33c8f16fa3235dab314afc5c7b9d9f9290970da2f851625
6
+ metadata.gz: e46b069ae3c30fb7c9c682526bb9687f6b5d85bbf4b3334e141f129abd0d7f9feccd0e4ef542ebc07c78bb95e564f85fb41a91a6cbbc712d102dc1c92f0e3c3c
7
+ data.tar.gz: a7f8fb34f8d9a1de4de061547f0b3246227a5549a704aa5183fac50a0c999c281ec54c28156819af40645cc5e1205d6638fb5b3a52a285b1f64001dca7cb9b28
@@ -63,5 +63,8 @@ class Rake::Ant
63
63
  load
64
64
  end
65
65
 
66
+ # For backward compatibility
67
+ Ant = Rake::Ant
68
+
66
69
  require 'rake/ant/ant'
67
70
  require 'rake/ant/rake' if defined?(::Rake)
@@ -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
@@ -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
@@ -1,4 +1,4 @@
1
- class Ant
1
+ class Rake::Ant
2
2
  java_import org.apache.tools.ant.IntrospectionHelper
3
3
  java_import org.apache.tools.ant.RuntimeConfigurable
4
4
  java_import org.apache.tools.ant.UnknownElement
@@ -2,7 +2,7 @@ require 'rexml/parsers/sax2parser'
2
2
  require 'rexml/sax2listener'
3
3
  require 'rake/ant'
4
4
 
5
- class Ant
5
+ class Rake::Ant
6
6
  class ProjectConverter
7
7
  include REXML::SAX2Listener
8
8
 
@@ -1,6 +1,6 @@
1
1
  require 'java'
2
2
 
3
- class Ant
3
+ class Rake::Ant
4
4
  java_import org.apache.tools.ant.Target
5
5
 
6
6
  class RakeTarget < Target
@@ -1,5 +1,5 @@
1
1
  module Rake
2
2
  class Ant
3
- VERSION = "1.0.1"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
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.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas E Enebo