The configuration of the Zip command on the ‘bundle’ tasks seems to always
be causing the output file to be modified.

The easiest way to demonstrate it using the
gradle-samples-0.10.zipcontents. These commands should be run in the
‘multiproject’ folder:

gradle clean :library:assemble > /dev/null
ls -lhT library/build/libs/library-1.0.aar
gradle :library:assemble > /dev/null
ls -lhT library/build/libs/library-1.0.aar

Here’s the output from me running:

$ gradle clean :library:assemble > /dev/null
$ ls -lhT library/build/libs/library-1.0.aar
-rw-r--r--  1 jw  jw   2.7K May 15 23:57:18 2014
library/build/libs/library-1.0.aar
$ gradle :library:assemble > /dev/null
$ ls -lhT library/build/libs/library-1.0.aar
-rw-r--r--  1 jw  jw   2.7K May 15 23:57:32 2014
library/build/libs/library-1.0.aar

When you run with --info you can see that it knows what’s happening:

:library:bundleRelease (Thread[main,5,main]) started.
:library:bundleRelease
Executing task ':library:bundleRelease' (up-to-date check took 0.002
secs) due to:
  Output file 
/Users/jw/Downloads/gradle-samples-0.10/multiproject/library/build/libs/library-1.0.aar
has changed.
:library:bundleRelease (Thread[main,5,main]) completed. Took 0.011 secs.

The task inputs and outputs are configured in LibraryPlugin:

bundle.destinationDir = project.file("$project.buildDir/libs")// ...
bundle.from(project.file("$project.buildDir/$DIR_BUNDLES/${variantData.variantConfiguration.dirName}"))

I didn’t dig down into the Gradle impl of Zip to find out what’s exactly
happening.

Is this working as intended or is it a breakage of incremental?

-- 
You received this message because you are subscribed to the Google Groups 
"adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to