On May 7, 2010, at 12:13 AM, Rene Groeschke wrote:

> Hi there,
> I have a jar task that looks like the following:
> 
> task jarTests(dependsOn:testClasses, type: Jar) {
>    from sourceSets.test.classesDir
>       baseName = "${project.name}-Tests"
> }
> 
> From time to time created jar does contain a meta-inf directory only and
> not any class file. I'm not sure why it works sometimes, and sometimes
> not. any ideas?
> 
> regards,
> René

Are you using the trunk (0.9) version or 0.8?  I have seen cases in 0.9 where 
the up-to-date checking has inappropriately flagged a task as up-to-date and 
skipped it. I wonder if some time after you did a clean, the compileTestJava 
task didn't actually run (because gradle thought it was up to date), but the 
jar task did.  Next time  you notice this while the build output is still 
available, look and see if compileTestJava actually ran or was optimized out.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to