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 2011/03/12 21:34:11 UTC

svn commit: r1081002 - /tapestry/tapestry5/trunk/tapestry-core/build.gradle

Author: hlship
Date: Sat Mar 12 20:34:11 2011
New Revision: 1081002

URL: http://svn.apache.org/viewvc?rev=1081002&view=rev
Log:
TAP5-116: Configure the inputs and outputs of generateGrammarSource task, to prevent unnecessary execution

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=1081002&r1=1081001&r2=1081002&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/build.gradle (original)
+++ tapestry/tapestry5/trunk/tapestry-core/build.gradle Sat Mar 12 20:34:11 2011
@@ -28,12 +28,11 @@ dependencies {
 
 // This may spin out as a plugin once we've got the details down pat
 
-task generateGrammarSource(
-  description: "Generates Java sources from Antlr3 grammars."
-) << {
-  // Seems that you have to use error for it to show up normally.
-  logger.error "GENERATE GRAMMAR SOURCE for $project.name"
-  
+task generateGrammarSource {
+  description = "Generates Java sources from Antlr3 grammars."
+  inputs.dir file(antlrSource)
+  outputs.dir file(antlrOutput)
+} << {
   mkdir(antlrOutput)
   
   // Might have a problem here if the current directory has a space in its name