How to run Buildr directly from its build directory without having to install it in the system?

View: New views
6 Messages — Rating Filter:   Alert me  

How to run Buildr directly from its build directory without having to install it in the system?

by Timo Rantalaiho :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello, all,

How can I run buildr from the build done under the checkout
directory?

I'm making some changes to Buildr source code and to  see them
in action, I'm running "rake install" and then running buildr
normally. But this is really slow and replaces buildr installed
on my machine with the development version :)

There must be a better way, please help a ruby noob!

Cheers,
Timo

--
Timo Rantalaiho          
Reaktor Innovations Oy    <URL: http://www.ri.fi/ >

Re: How to run Buildr directly from its build directory without having to install it in the system?

by Victor Hugo Borja :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Nov 27, 2008 at 10:07 AM, Timo Rantalaiho <Timo.Rantalaiho@...>wrote:

> How can I run buildr from the build done under the checkout
> directory?
>


There's a _buildr script for this on the top-level directory of your
checkout.

Re: How to run Buildr directly from its build directory without having to install it in the system?

by Alexis Midon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

here is the bash script I use to do that:

/usr/bin/ruby -I/home/alexis/w/buildr.git/lib \
      -I/home/alexis/w/buildr.git/addon \
      /home/alexis/w/buildr.git/bin/buildr $@

Alexis


On Thu, Nov 27, 2008 at 8:07 AM, Timo Rantalaiho <Timo.Rantalaiho@...>wrote:

> Hello, all,
>
> How can I run buildr from the build done under the checkout
> directory?
>
> I'm making some changes to Buildr source code and to  see them
> in action, I'm running "rake install" and then running buildr
> normally. But this is really slow and replaces buildr installed
> on my machine with the development version :)
>
> There must be a better way, please help a ruby noob!
>
> Cheers,
> Timo
>
> --
> Timo Rantalaiho
> Reaktor Innovations Oy    <URL: http://www.ri.fi/ >
>

Re: How to run Buildr directly from its build directory without having to install it in the system?

by Victor Hugo Borja :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Nov 27, 2008 at 10:27 AM, Alexis Midon <alexismidon@...>wrote:

> here is the bash script I use to do that:
>
> /usr/bin/ruby -I/home/alexis/w/buildr.git/lib \
>      -I/home/alexis/w/buildr.git/addon \
>      /home/alexis/w/buildr.git/bin/buildr $@
>

Additionally, the _buildr script on the repo loads the buildr.gemspec to
ensure the correct gem versions
are used for buildr's dependencies.

Re: How to run Buildr directly from its build directory without having to install it in the system?

by Alex Boisvert-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yep, I used Alexis' approach before and I moved to using _buildr since it
works better.

alex


On Thu, Nov 27, 2008 at 8:36 AM, Victor Hugo Borja <vic.borja@...>wrote:

> On Thu, Nov 27, 2008 at 10:27 AM, Alexis Midon <alexismidon@...
> >wrote:
>
> > here is the bash script I use to do that:
> >
> > /usr/bin/ruby -I/home/alexis/w/buildr.git/lib \
> >      -I/home/alexis/w/buildr.git/addon \
> >      /home/alexis/w/buildr.git/bin/buildr $@
> >
>
> Additionally, the _buildr script on the repo loads the buildr.gemspec to
> ensure the correct gem versions
> are used for buildr's dependencies.
>

Re: How to run Buildr directly from its build directory without having to install it in the system?

by Timo Rantalaiho :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Great,

Thanks for all the prompt replies to my both questions!

Best wishes,
Timo

--
Timo Rantalaiho          
Reaktor Innovations Oy    <URL: http://www.ri.fi/ >