Hi there,

I'm trying dig a bit deeper into the incremental build feature to speed up
our builds and learn something new :-)

Maybe I found a bug. Take a look at the following task:

task incrementalTest(type:Copy) {
        def timestamp = new SimpleDateFormat('dd-MMM-yyyy - hh:mm').format(new
Date())
        inputs.property('timestamp', timestamp)

        from('samplein')
        into('sampleout')
}

shouldn't this task marked as "not up to date" every minute? Gradle tolds
me every time that this task is upToDate (except the first call of course
where the copy action is performed the first time).

after adding an empty doLast closure, the incremental feature works as
expected:

task incrementalTest(type:Copy) {
        def timestamp = new SimpleDateFormat('dd-MMM-yyyy - hh:mm').format(new
Date())
        inputs.property('timestamp', timestamp)

        from('samplein')
        into('sampleout')

        doLast{
        }
}

is this expected behaviour?

regards,
René


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to