You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildr.apache.org by "Lacton (JIRA)" <ji...@apache.org> on 2008/08/04 00:19:44 UTC

[jira] Created: (BUILDR-119) eclipse task does not accept test resource folders

eclipse task does not accept test resource folders
--------------------------------------------------

                 Key: BUILDR-119
                 URL: https://issues.apache.org/jira/browse/BUILDR-119
             Project: Buildr
          Issue Type: Bug
          Components: IDE
    Affects Versions: 1.3.3
         Environment: trunk revision 680924
            Reporter: Lacton


When calling the eclipse task on a project that has test resources, buildr should add the test resources' folders to the eclipse classpath. Instead, it raises the error 'undefined method `to_sym' for #<Rake::FileTask:0xb73a0694>'.

This issue is similar to issue BUILDR-106. A FileTask object is given to the path_to method, although it does not know how to handle something that is not a string or an array of symbols and strings.

This issue affects only test resources, not main resources, because of some code discrepancy in eclipse.rb

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (BUILDR-119) eclipse task does not accept test resource folders

Posted by "Lacton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/BUILDR-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12619851#action_12619851 ] 

Lacton commented on BUILDR-119:
-------------------------------

Great. Thank you!

> eclipse task does not accept test resource folders
> --------------------------------------------------
>
>                 Key: BUILDR-119
>                 URL: https://issues.apache.org/jira/browse/BUILDR-119
>             Project: Buildr
>          Issue Type: Bug
>          Components: IDE
>    Affects Versions: 1.3.3
>         Environment: trunk revision 680924
>            Reporter: Lacton
>            Assignee: Alex Boisvert
>             Fix For: 1.3.3
>
>         Attachments: BUILDR-119.lib.patch, BUILDR-119.spec.patch
>
>
> When calling the eclipse task on a project that has test resources, buildr should add the test resources' folders to the eclipse classpath. Instead, it raises the error 'undefined method `to_sym' for #<Rake::FileTask:0xb73a0694>'.
> This issue is similar to issue BUILDR-106. A FileTask object is given to the path_to method, although it does not know how to handle something that is not a string or an array of symbols and strings.
> This issue affects only test resources, not main resources, because of some code discrepancy in eclipse.rb

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-119) eclipse task does not accept test resource folders

Posted by "Lacton (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lacton updated BUILDR-119:
--------------------------

    Attachment: BUILDR-119.lib.patch

> eclipse task does not accept test resource folders
> --------------------------------------------------
>
>                 Key: BUILDR-119
>                 URL: https://issues.apache.org/jira/browse/BUILDR-119
>             Project: Buildr
>          Issue Type: Bug
>          Components: IDE
>    Affects Versions: 1.3.3
>         Environment: trunk revision 680924
>            Reporter: Lacton
>         Attachments: BUILDR-119.lib.patch, BUILDR-119.spec.patch
>
>
> When calling the eclipse task on a project that has test resources, buildr should add the test resources' folders to the eclipse classpath. Instead, it raises the error 'undefined method `to_sym' for #<Rake::FileTask:0xb73a0694>'.
> This issue is similar to issue BUILDR-106. A FileTask object is given to the path_to method, although it does not know how to handle something that is not a string or an array of symbols and strings.
> This issue affects only test resources, not main resources, because of some code discrepancy in eclipse.rb

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (BUILDR-119) eclipse task does not accept test resource folders

Posted by "Alex Boisvert (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Boisvert resolved BUILDR-119.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.3.3

Applied the patches,

svn commit -m "BUILDR-119: eclipse task does not accept test resource folders"
Sending        lib/buildr/ide/eclipse.rb
Adding         spec/eclipse_spec.rb
Transmitting file data ..
Committed revision 682559.

with minor modification,

        it 'should accept a user-defined main source folder' do
         define('foo') { compile path_to('src/java') }
+        write 'src/java/Foo.java'
        classpath_sources.should include('src/java')
      end

so that all test pass now.   The directory existence is being discussed over at BUILDR-122.

Much thanks for starting the Eclipse task spec!  I'm not an rspec expert so I don't have much constructive feedback other than it looked perfectly fine to me.

> eclipse task does not accept test resource folders
> --------------------------------------------------
>
>                 Key: BUILDR-119
>                 URL: https://issues.apache.org/jira/browse/BUILDR-119
>             Project: Buildr
>          Issue Type: Bug
>          Components: IDE
>    Affects Versions: 1.3.3
>         Environment: trunk revision 680924
>            Reporter: Lacton
>             Fix For: 1.3.3
>
>         Attachments: BUILDR-119.lib.patch, BUILDR-119.spec.patch
>
>
> When calling the eclipse task on a project that has test resources, buildr should add the test resources' folders to the eclipse classpath. Instead, it raises the error 'undefined method `to_sym' for #<Rake::FileTask:0xb73a0694>'.
> This issue is similar to issue BUILDR-106. A FileTask object is given to the path_to method, although it does not know how to handle something that is not a string or an array of symbols and strings.
> This issue affects only test resources, not main resources, because of some code discrepancy in eclipse.rb

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (BUILDR-119) eclipse task does not accept test resource folders

Posted by "Alex Boisvert (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Boisvert reassigned BUILDR-119:
------------------------------------

    Assignee: Alex Boisvert

> eclipse task does not accept test resource folders
> --------------------------------------------------
>
>                 Key: BUILDR-119
>                 URL: https://issues.apache.org/jira/browse/BUILDR-119
>             Project: Buildr
>          Issue Type: Bug
>          Components: IDE
>    Affects Versions: 1.3.3
>         Environment: trunk revision 680924
>            Reporter: Lacton
>            Assignee: Alex Boisvert
>             Fix For: 1.3.3
>
>         Attachments: BUILDR-119.lib.patch, BUILDR-119.spec.patch
>
>
> When calling the eclipse task on a project that has test resources, buildr should add the test resources' folders to the eclipse classpath. Instead, it raises the error 'undefined method `to_sym' for #<Rake::FileTask:0xb73a0694>'.
> This issue is similar to issue BUILDR-106. A FileTask object is given to the path_to method, although it does not know how to handle something that is not a string or an array of symbols and strings.
> This issue affects only test resources, not main resources, because of some code discrepancy in eclipse.rb

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (BUILDR-119) eclipse task does not accept test resource folders

Posted by "Lacton (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/BUILDR-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lacton updated BUILDR-119:
--------------------------

    Attachment: BUILDR-119.spec.patch

Here is a new spec file for the eclipse task.

I am not familiar with rspec. I am looking forward to getting improvement feedback.

> eclipse task does not accept test resource folders
> --------------------------------------------------
>
>                 Key: BUILDR-119
>                 URL: https://issues.apache.org/jira/browse/BUILDR-119
>             Project: Buildr
>          Issue Type: Bug
>          Components: IDE
>    Affects Versions: 1.3.3
>         Environment: trunk revision 680924
>            Reporter: Lacton
>         Attachments: BUILDR-119.spec.patch
>
>
> When calling the eclipse task on a project that has test resources, buildr should add the test resources' folders to the eclipse classpath. Instead, it raises the error 'undefined method `to_sym' for #<Rake::FileTask:0xb73a0694>'.
> This issue is similar to issue BUILDR-106. A FileTask object is given to the path_to method, although it does not know how to handle something that is not a string or an array of symbols and strings.
> This issue affects only test resources, not main resources, because of some code discrepancy in eclipse.rb

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.