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/02/11 12:56:36 UTC
svn commit: r1069762 - /tapestry/tapestry5/trunk/tapestry-core/build.gradle
Author: hlship
Date: Fri Feb 11 11:56:36 2011
New Revision: 1069762
URL: http://svn.apache.org/viewvc?rev=1069762&view=rev
Log:
Start working on adding in Antlr3 source generation to the build
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=1069762&r1=1069761&r2=1069762&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-core/build.gradle (original)
+++ tapestry/tapestry5/trunk/tapestry-core/build.gradle Fri Feb 11 11:56:36 2011
@@ -1,5 +1,11 @@
description="Central module for Tapestry, containing all core services and components"
+antlrOutput = "$buildDir/generated-sources/antlr"
+
+configurations {
+ antlr3
+}
+
dependencies {
compile project(':tapestry-ioc')
compile project(':tapestry-json')
@@ -9,6 +15,21 @@ dependencies {
compile "commons-codec:commons-codec:1.3"
compile "javax.servlet:servlet-api:2.4"
+ // Transitive will bring in the unwanted string template library as well
compile "org.antlr:antlr-runtime:3.3", { transitive = false }
-}
\ No newline at end of file
+ // Antlr3 tool path used with the antlr3 task
+ antlr3 "org.antlr:antlr:3.3"
+}
+
+// This may spin out as a plugin once we've got the details down pat
+
+task generateGrammarSource(
+ description: "Generates Java sources from Antlr3 grammars."
+) << {
+ logger.info "GENERATE GRAMMAR SOURCE"
+
+ mkdir(antlrOutput)
+}
+
+compileJava.dependsOn generateGrammarSource
\ No newline at end of file