On Tue, Sep 16, 2008 at 2:30 PM, Herve GIRAUD <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have the following problem :
>
> When one is using the src/test/resources directory, the "buildr eclipse"
> command is not working anymore.
> in eclipse.rb :
>
>  # Test resources go in separate output directory as well
>  project.test.resources.sources.each do |path|
>   if File.exist? project.path_to(path)
>
> the project.path_to is called with a FileTask as a parameter
> (c:\...myproject\src\test\resources)
> and inside the Layout class
>
>  class Layout
>   def expand(*args)
>     args = args.compact.reject { |s| s.to_s.empty? }.map(&:to_sym)
>
> the instruction map(&:to_sym) fail
> Am I missing something ?

This is a known issue. Refer to https://issues.apache.org/jira/browse/BUILDR-119

> I have patched the method with the following code :
>
>  class Layout
>   def expand(*args)
>     args = args.compact.reject { |s| s.to_s.empty? }.map( |e| e.to_s.to_sym)
>
> and now it works, the classpath is correct and the tests are ok.
> is it just me or nobody is using eclipse ide with junit tests and test
> resources ?

No, it's not just you.  I use both.

Lacton

Reply via email to