On Thu, Oct 23, 2008 at 2:22 PM, lacton <[EMAIL PROTECTED]> wrote:
> You may have noticed that I changed compile_spec after adding the
> 'sources' task for BUILDR-164.
>
> Buildr (rake) interpreted "compile.from('sources')" as a dependency to
> the new 'sources' task instead of the 'sources' subdirectory.

Short term, rename the task to something that's clearly not a
file/directory name, say artifact:sources, or download:sources.

Long term, this has been bugging me for a while.  All tasks share the
same name, including file tasks and occasionally we get collisions.
There's a work around, using full paths as often as possible, which
works most of the time, but brings its own annoyance: console output
runs a mile long.

I'd like at some point to truncate these too-long paths, maybe the
solution would be to use namespaces for most other tasks?

Assaf

>
> Any better idea?
>
> Lacton
>
>> Modified: incubator/buildr/trunk/spec/core/compile_spec.rb
>> URL: 
>> http://svn.apache.org/viewvc/incubator/buildr/trunk/spec/core/compile_spec.rb?rev=707477&r1=707476&r2=707477&view=diff
>> ==============================================================================
>> --- incubator/buildr/trunk/spec/core/compile_spec.rb (original)
>> +++ incubator/buildr/trunk/spec/core/compile_spec.rb Thu Oct 23 14:17:25 2008
>> @@ -379,7 +379,7 @@
>>   it 'should complain if source directories and no compiler selected' do
>>     mkpath 'sources'
>>     define 'bar' do
>> -      lambda { compile.from('sources').invoke }.should 
>> raise_error(RuntimeError, /no compiler selected/i)
>> +      lambda { compile.from(_('sources')).invoke }.should 
>> raise_error(RuntimeError, /no compiler selected/i)
>>     end
>>   end
>>  end
>

Reply via email to