On Wed, Feb 17, 2010 at 6:40 AM, Ed Beaty <[email protected]> wrote:

> Hi.  When I use the compile task in buildr 1.3.5, it tries to download
> org.apache.ant 1.7.1 from the remote repository, if possible.
>
> 1)  Can I tell buildr to use a different version of ant (say, 1.7.0)
> instead?
>

Yes, put the following at the top of your Buildfile,

module Buildr
  module Ant
    # Force specific Ant version
    VERSION = '1.7.1'
  end
end


> 2)  Can I tell buildr to download this version from my repository which is
> not in the maven standard format?  My libs are organized as:
> [repository]/lib/apache-ant/ant-1.7.0.jar
> [repository]/lib/apache-ant/ant-launcher-1.7.0.jar
>
> instead of:
> [repository]/org/apache/ant/ant/1.7.0/ant-1.7.0.jar
> [repository]/org/apache/ant/ant-launcher/1.7.0/ant-launcher-1.7.0.jar
>

Yes, it should be possible by overriding the location of the artifacts,

e.g. artifact("org.apache.ant:ant:jar:1.7.1").from(path_into_repository),
etc.

(I haven't tried this, though)

alex


> Thanks,
> Ed
>

Reply via email to