You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by Shane Witbeck <sh...@digitalsanctum.com> on 2008/05/14 22:20:10 UTC
*.rake files not being picked up in 1.3.0?
Since upgrading to 1.3.0, the buildfile doesn't seem to be picking up
all my *.rake files in root/tasks directory.
Is this a known change that I missed? Do you now have to explicitly
include rake files?
--
-Shane
Re: *.rake files not being picked up in 1.3.0?
Posted by Shane Witbeck <sh...@digitalsanctum.com>.
Thanks Victor....that helped.
On Thu, May 15, 2008 at 2:26 PM, Victor Hugo Borja <vi...@gmail.com> wrote:
> Hi Shane,
>
> Actually the problem was that task/*.rake files were being loaded after
> executing the top_level tasks.
> I've fixed this on trunk.
> See application.rb lines 177-179
>
> On Thu, May 15, 2008 at 1:22 PM, Shane Witbeck <sh...@digitalsanctum.com>
> wrote:
>
>> I think I may have found the culprit... in application.rb line 221
>>
>> installed.each do |spec|
>> if gem(spec.name, spec.version.to_s)
>> # FileList[spec.require_paths.map { |path|
>> File.expand_path("#{path}/*.rb", spec.full_gem_path) }].
>> # map { |path| File.basename(path) }.each { |file| require file }
>> # FileList[File.expand_path('tasks/*.rake',
>> spec.full_gem_path)].each do |file|
>> # Buildr.application.add_import file
>> # end
>> end
>> end
>>
>> Was this an intentional change?
>>
>>
>> On Thu, May 15, 2008 at 2:12 PM, Shane Witbeck <sh...@digitalsanctum.com>
>> wrote:
>> > I'm posting to the dev list as well since I haven't got an answer on
>> > this yet. Still trying to figure out why *.rake files are being picked
>> > up from root/tasks dir?
>> >
>> > Is this a rake convention or a buildr convention?
>> >
>> > Thanks,
>> > Shane
>> >
>> >
>> > ---------- Forwarded message ----------
>> > From: Shane Witbeck <sh...@digitalsanctum.com>
>> > Date: Wed, May 14, 2008 at 4:20 PM
>> > Subject: *.rake files not being picked up in 1.3.0?
>> > To: buildr-user@incubator.apache.org
>> >
>> >
>> > Since upgrading to 1.3.0, the buildfile doesn't seem to be picking up
>> > all my *.rake files in root/tasks directory.
>> >
>> > Is this a known change that I missed? Do you now have to explicitly
>> > include rake files?
>> >
>> > --
>> > -Shane
>> >
>> >
>> >
>> > --
>> > -Shane
>> >
>>
>>
>>
>> --
>> -Shane
>>
>
>
>
> --
> vic
>
> Quaerendo invenietis.
>
--
-Shane
Re: *.rake files not being picked up in 1.3.0?
Posted by Victor Hugo Borja <vi...@gmail.com>.
Hi Shane,
Actually the problem was that task/*.rake files were being loaded after
executing the top_level tasks.
I've fixed this on trunk.
See application.rb lines 177-179
On Thu, May 15, 2008 at 1:22 PM, Shane Witbeck <sh...@digitalsanctum.com>
wrote:
> I think I may have found the culprit... in application.rb line 221
>
> installed.each do |spec|
> if gem(spec.name, spec.version.to_s)
> # FileList[spec.require_paths.map { |path|
> File.expand_path("#{path}/*.rb", spec.full_gem_path) }].
> # map { |path| File.basename(path) }.each { |file| require file }
> # FileList[File.expand_path('tasks/*.rake',
> spec.full_gem_path)].each do |file|
> # Buildr.application.add_import file
> # end
> end
> end
>
> Was this an intentional change?
>
>
> On Thu, May 15, 2008 at 2:12 PM, Shane Witbeck <sh...@digitalsanctum.com>
> wrote:
> > I'm posting to the dev list as well since I haven't got an answer on
> > this yet. Still trying to figure out why *.rake files are being picked
> > up from root/tasks dir?
> >
> > Is this a rake convention or a buildr convention?
> >
> > Thanks,
> > Shane
> >
> >
> > ---------- Forwarded message ----------
> > From: Shane Witbeck <sh...@digitalsanctum.com>
> > Date: Wed, May 14, 2008 at 4:20 PM
> > Subject: *.rake files not being picked up in 1.3.0?
> > To: buildr-user@incubator.apache.org
> >
> >
> > Since upgrading to 1.3.0, the buildfile doesn't seem to be picking up
> > all my *.rake files in root/tasks directory.
> >
> > Is this a known change that I missed? Do you now have to explicitly
> > include rake files?
> >
> > --
> > -Shane
> >
> >
> >
> > --
> > -Shane
> >
>
>
>
> --
> -Shane
>
--
vic
Quaerendo invenietis.
Re: *.rake files not being picked up in 1.3.0?
Posted by Shane Witbeck <sh...@digitalsanctum.com>.
I think I may have found the culprit... in application.rb line 221
installed.each do |spec|
if gem(spec.name, spec.version.to_s)
# FileList[spec.require_paths.map { |path|
File.expand_path("#{path}/*.rb", spec.full_gem_path) }].
# map { |path| File.basename(path) }.each { |file| require file }
# FileList[File.expand_path('tasks/*.rake',
spec.full_gem_path)].each do |file|
# Buildr.application.add_import file
# end
end
end
Was this an intentional change?
On Thu, May 15, 2008 at 2:12 PM, Shane Witbeck <sh...@digitalsanctum.com> wrote:
> I'm posting to the dev list as well since I haven't got an answer on
> this yet. Still trying to figure out why *.rake files are being picked
> up from root/tasks dir?
>
> Is this a rake convention or a buildr convention?
>
> Thanks,
> Shane
>
>
> ---------- Forwarded message ----------
> From: Shane Witbeck <sh...@digitalsanctum.com>
> Date: Wed, May 14, 2008 at 4:20 PM
> Subject: *.rake files not being picked up in 1.3.0?
> To: buildr-user@incubator.apache.org
>
>
> Since upgrading to 1.3.0, the buildfile doesn't seem to be picking up
> all my *.rake files in root/tasks directory.
>
> Is this a known change that I missed? Do you now have to explicitly
> include rake files?
>
> --
> -Shane
>
>
>
> --
> -Shane
>
--
-Shane
Fwd: *.rake files not being picked up in 1.3.0?
Posted by Shane Witbeck <sh...@digitalsanctum.com>.
I'm posting to the dev list as well since I haven't got an answer on
this yet. Still trying to figure out why *.rake files are being picked
up from root/tasks dir?
Is this a rake convention or a buildr convention?
Thanks,
Shane
---------- Forwarded message ----------
From: Shane Witbeck <sh...@digitalsanctum.com>
Date: Wed, May 14, 2008 at 4:20 PM
Subject: *.rake files not being picked up in 1.3.0?
To: buildr-user@incubator.apache.org
Since upgrading to 1.3.0, the buildfile doesn't seem to be picking up
all my *.rake files in root/tasks directory.
Is this a known change that I missed? Do you now have to explicitly
include rake files?
--
-Shane
--
-Shane