Better support for up-to-date checks #18
Comments
up-to-date checks of compileGwt work for me. On the second run it's correctly marked as UP-TO-DATE. I tested it using one of the example projects and a real world project. The output of the example project's build:
So I guess it is related to your specific build. Be aware that not only the source files are relevant for the up-to-date check but also the compiler flags that possibly change the output (e.g. turning closure compiler on/off). As far as I remember appending "-i" (sets the log level to info) to the gradle command line will show why the task isn't considered up-to-date. I'll leave this issue open to wait for feedback. Possibly it's an issue that only occurs in a specific configuration. |
OK, I tested it some more. The up-to-date check works fine but when I add style = 'DETAILED' the check is broken in our build. I can't get this reproduced in the the example project simple-war. Output from gradle :compileGwt -i in our build is always although the style never changes:
|
This seems to be a class loader problem or alike. After debugging gradle I can see that the current style value, when compared with the value from the previous run, is in fact two different instances of the same enum value.
|
+1 sounds like #77 is a duplicate of this |
@rbaradari I'm investigating Gradle's handling of However, I'm having trouble reproducing the specific behavior you're seeing. I have created an example GWT project in the hopes of replicating this exact behavior. It would be especially helpful if you could answer 2 things for me:
|
Setup
Gradle 1.10
Plugin 0.3
OS Windows 7
Scenario
Running gradle assemble multiple times in a row without changing any of the files.
Expected
The gwt tasks are executed on the first run but on the following runs the gwt tasks are skipped as UP-TO-DATE.
Observed
The gwt tasks are executed on each and every run although no source files have been changed. This is very tiring considering that the compileGwt task might take quite some time to generate the javascript.
The text was updated successfully, but these errors were encountered: