after reading Charles’ and Tom’s articles about the Ant-Rake integration in
JRuby 1.5.X, i decided to give it a try by replacing an existing ant script
with a rake script.
The ant script that I am trying to replace is in a build script hierarchy
(i.e. it relies on other build scripts) for things like resources and paths.
I haven’t been able to ascertain how I access ant-defined paths and
resources from within my rake task. Can anybody help me out plz?
So you’re trying to access ant properties from Ruby? You can try
“ant.properties[‘property.name’]” for one. If it’s a path-like object,
you might try getting the path object by reference from the Ant
path = ant.project.getReference('my.path')
# use the org.apache.tools.types.Path API against the path object
If that doesn’t help you out, can you provide an example of what
you’re trying to do?