Class: JarFiles
- Inherits:
-
Rake::FileList
- Object
- Rake::FileList
- JarFiles
- Includes:
- RakeJavaUtil
- Defined in:
- lib/rakejava.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#root ⇒ Object
Returns the value of attribute root.
Instance Method Summary collapse
-
#initialize(*args) ⇒ JarFiles
constructor
A new instance of JarFiles.
- #resolve ⇒ Object
Methods included from RakeJavaUtil
#path_esc, #path_sep, #popd, #pushd, #pushd_stack, #separate, #space_sep, #winderz?
Constructor Details
#initialize(*args) ⇒ JarFiles
Returns a new instance of JarFiles.
101 102 103 104 105 |
# File 'lib/rakejava.rb', line 101 def initialize *args @root = args.shift.sub(%r[/+$], '') # remove trailing slashes @resolved = false super end |
Instance Attribute Details
#root ⇒ Object
Returns the value of attribute root.
99 100 101 |
# File 'lib/rakejava.rb', line 99 def root @root end |
Instance Method Details
#resolve ⇒ Object
107 108 109 110 111 112 113 114 115 116 117 |
# File 'lib/rakejava.rb', line 107 def resolve unless @resolved @resolved = true pushd @root super # puts "Resolving #{self.class.name} list" @items.map! { |i| "#{@root}#{File::SEPARATOR}#{i}" } popd end self end |