You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2012/01/24 01:59:30 UTC
svn commit: r1235102 - /tapestry/tapestry5/trunk/tapestry-core/build.gradle
Author: hlship
Date: Tue Jan 24 00:59:29 2012
New Revision: 1235102
URL: http://svn.apache.org/viewvc?rev=1235102&view=rev
Log:
Use a hack to skip the generateGrammarSource when its inputs and outputs are not changed
Modified:
tapestry/tapestry5/trunk/tapestry-core/build.gradle
Modified: tapestry/tapestry5/trunk/tapestry-core/build.gradle
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/build.gradle?rev=1235102&r1=1235101&r2=1235102&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/build.gradle (original)
+++ tapestry/tapestry5/trunk/tapestry-core/build.gradle Tue Jan 24 00:59:29 2012
@@ -1,4 +1,5 @@
import org.apache.tools.ant.filters.*
+import org.gradle.api.specs.AndSpec
description = "Central module for Tapestry, containing all core services and components"
@@ -36,6 +37,9 @@ task generateGrammarSource(type: JavaExe
inputs.source fileTree(dir: antlrSource, include: "**/*.g")
outputs.dir file(antlrOutput)
+ // See http://forums.gradle.org/gradle/topics/why_does_a_task_execute_even_when_inputs_and_outputs_are_defined_and_nothing_has_changed
+ outputs.upToDateSpec = new AndSpec();
+
classpath configurations.antlr3
main "org.antlr.Tool"