-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On Jun 3, 2007, at 23:20 , Magnus Falk wrote:

> 2: I have lots of ugly "insert space between the arguments in my
> arrays". How do I do it in a nicer way?

Just build your array and then call array.join(' ') to get a string of
the array elements separated by a space.

> 3: I would like to separate the "defined" tasks from the "regular"
> ones so that the part furthest down is content of each "satellite"
> rakefile which then includes the top part as a kind of library. But
> when I tried doing it by simply putting the top part in a file and
> then putting 'require "../../cppBuildLib.rb"' at the top of the
> satellite file I got a message that file couldn't be found (or
> something to that effect).

Yes, it's a bit hard to say where ruby thinks that the current directory
is. But as the string you give to require doesn't have to be static you
can just make it an absolute path buy prepending File.dirname(__FILE__)
(and maybe use File.join to create the path out of its pieces).

Urban


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)

iD8DBQFGZEMxggNuVCIrEyURAm59AJoDF/dQejNJ4rSGapzJu2OWEdCFnQCfeJxY
LnIud7fAAIn85LowMZCn5Pw=
=kXVn
-----END PGP SIGNATURE-----