lib/ivy4r.rb in ivy4r-0.9.1 vs lib/ivy4r.rb in ivy4r-0.9.2
- old
+ new
@@ -33,11 +33,11 @@
{:dir => 'target/p1', :includes => 'buildfile'}
]
}
=end
class Ivy4r
- VERSION = '0.9.1'
+ VERSION = '0.9.2'
# Set the ant home directory to load ant classes from if no custom __antwrap__ is provided
# and the default provided ant version 1.7.1 should not be used.
# Must be set before any call to method that uses the ivy is made.
attr_accessor :ant_home
@@ -147,9 +147,15 @@
end
# Calls the __report__ ivy target with given parameters
def report(*params)
Ivy::Report.new(ant).execute(*params)
+ end
+
+ # Creates ivy file for last resolved descriptor using the underlying java facilities
+ # (ModuleDescriptor.toIvyFile(java.io.File)).
+ def to_ivy_file(*params)
+ Ivy::ToIvyFile.new(ant).execute(*params)
end
# Used to get or set ant properties.
# [set] <tt>property['name'] = value</tt> sets the ant property with name to given value no overwrite
# [get] <tt>property[matcher]</tt> gets property that is equal via case equality operator (<tt>===</tt>)