buildr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antoine Toulme (JIRA)" <j...@apache.org>
Subject [jira] Updated: (BUILDR-381) groovy compiler misses JUnit dependency
Date Sun, 28 Feb 2010 03:10:05 GMT

     [ https://issues.apache.org/jira/browse/BUILDR-381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Antoine Toulme updated BUILDR-381:
----------------------------------

    Attachment: BUILDR-381.txt

Here is a complete patch with a spec for it. It fixes the problem a minima by adding this
in tests.rb:

class TestFramework::Java < TestFramework::Base

    class << self

      def applies_to?(project) #:nodoc:
        project.test.compile.language == :java || project.test.compile.language == :groovy
      end


Meaning, every test framework defined for java works for groovy too.

> groovy compiler misses JUnit dependency
> ---------------------------------------
>
>                 Key: BUILDR-381
>                 URL: https://issues.apache.org/jira/browse/BUILDR-381
>             Project: Buildr
>          Issue Type: Bug
>    Affects Versions: 1.3.5
>         Environment: Buildr 1.3.5 (JRuby 1.4.0)
>            Reporter: peter schröder
>            Priority: Minor
>         Attachments: BUILDR-381.txt, groovy.zip
>
>
> unit tests can not be compiled:
>  ERROR -- : Error instantiating 'groovyc' task: java.lang.NoClassDefFoundError: junit/framework/TestCase
>  Buildr aborted!
>  java.lang.NoClassDefFoundError: junit/framework/TestCase
> WORKAROUND:
> put this at the top of the buildfile:
>  Java.classpath << "junit:junit:jar:4.4"

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


Mime
View raw message