I think I'm having issues with my ant not knowing where to find my Rakefile
I have the following folder structure.
build.xml
开发者_JAVA百科[subfolder]/Rakefile
Within my build.xml I have the following task.
<target name="client">
<taskdef name="rake" classname="org.jruby.ant.Rake" classpath="../shared-lib/jruby.jar"/>
<rake task="jar"/>
</target>
I'm getting the following error.
build.xml: Could not create type rake due to org.jruby.embed.EvalFailedException: no such file to load -- ant/tasks/raketasks
Any help apprec
This appears to be a comprehensive article about the combination (both ant from rake and rake from ant):
http://www.engineyard.com/blog/2010/rake-and-ant-together-a-pick-it-n-stick-it-approach/
Do make sure of the following:
- the Rake task classpath includes any dependencies that JRuby has
- the Rakefile is in root directory (i.e.
basedir
)
By default when you execute the Rake command from the command line it looks in the current directory for the Rakefile. If your root Rakefile does nothing other than change directories and call the other Rakefile it should be better.
精彩评论