For integrating with big systems like Antlr, my general opinion is
that it's better to have parallel plugins since configuration options
are likely to change, and people aren't likely to want to have a
"surprise upgrade"—just because they update the plugin, they don't
suddenly want to be using a new major version of Antlr.

~~ Robert.

On Sat, Apr 16, 2011 at 7:21 PM, Steve Ebersole <[email protected]> wrote:
> Its much more toll friendly now.  I wrote the Maven plugin support for
> Antlr3 and it is much easier than the Antlr 2 support.  The real question is
> whether Gradle wants a single plugin to support both versions.  That is much
> tougher.
>
>
> On 04/16/2011 04:55 PM, Robert Fischer wrote:
>>
>> Looks like they changed the API on you.  Going to have to figure out
>> the new Ant task class name.
>>
>> ~~ Robert.
>>
>> On Sat, Apr 16, 2011 at 4:30 PM, Marko Bauhardt<[email protected]>  wrote:
>>>
>>> hi all.
>>> i'm using gradle 1.0 milestone-1.
>>> as i understand gradle's antlr plugin works with antlr2. i tried to
>>> configure gradle to use anltr3.
>>> but i'm getting this exception (see below)
>>> what i have todo to that gradle is using antlr3?
>>> any hints?
>>> thanks
>>> marko
>>>
>>> ---
>>> configurations {
>>>     grammarCompile
>>> }
>>> dependencies {
>>>     grammarCompile group: 'org.antlr', name: 'antlr', version: '3.1',
>>> transitive:false
>>>     compile group: 'org.antlr', name: 'antlr-runtime', version: '3.1',
>>> transitive:false
>>>     testCompile group: 'junit', name: 'junit', version: '4.+'
>>> }
>>> task generateGrammarSources<<  {
>>>     generatedDir = new File(project.buildDir.toString() +
>>> '/generated-src/')
>>>     generatedDir.mkdirs()
>>>     ant.taskdef(name: 'antlr3', classname: 'org.antlr.Tool', classpath:
>>> configurations.grammarCompile.asPath)
>>>     ant.antlr3(target: 'src/main/antlr/Calculator.g', outputdirectory:
>>> 'build/generated-src/')
>>> }
>>> ----
>>> ---
>>> :: loading settings :: url =
>>>
>>> jar:file:/Applications/gradle-1.0-milestone-1/lib/ivy-2.2.0.jar!/org/apache/ivy/core/settings/ivysettings.xml
>>> :: resolving dependencies :: #blabla;0.0.1
>>>         confs: [grammarCompile]
>>>         found org.antlr#antlr;3.1 in MavenRepo
>>> :: resolution report :: resolve 161ms :: artifacts dl 0ms
>>>
>>>  ---------------------------------------------------------------------
>>>         |                  |            modules            ||   artifacts
>>> |
>>>         |       conf       | number| search|dwnlded|evicted||
>>> number|dwnlded|
>>>
>>>  ---------------------------------------------------------------------
>>>         |  grammarCompile  |   1   |   0   |   0   |   0   ||   0   |   0
>>> |
>>>
>>>  ------------------------------------------------------------------------
>>> ----
>>> ---
>>> Caused by: : No public execute() in class org.antlr.Tool
>>>         at
>>> org.apache.tools.ant.TaskAdapter.checkTaskClass(TaskAdapter.java:97)
>>>         at
>>> org.apache.tools.ant.TaskAdapter.checkProxyClass(TaskAdapter.java:113)
>>>         at
>>>
>>> org.apache.tools.ant.AntTypeDefinition.checkClass(AntTypeDefinition.java:263)
>>>         at
>>> org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:614)
>>>         at
>>> org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:239)
>>>         at
>>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
>>>         at
>>>
>>> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
>>>         at
>>>
>>> org.gradle.api.internal.project.ant.BasicAntBuilder.nodeCompleted(BasicAntBuilder.java:71)
>>>         at
>>>
>>> org.gradle.api.internal.project.ant.BasicAntBuilder.doInvokeMethod(BasicAntBuilder.java:86)
>>>         at
>>>
>>> org.gradle.api.internal.project.DefaultAntBuilder.super$3$invokeMethod(DefaultAntBuilder.groovy)
>>>         at
>>>
>>> org.gradle.api.internal.project.DefaultAntBuilder.invokeMethod(DefaultAntBuilder.groovy:37)
>>>         at
>>>
>>> build_44c1a83iunkoa3eoun162srvg$_run_closure4.doCall(/blabla/build.gradle:24)
>>>         at
>>>
>>> org.gradle.api.internal.AbstractTask$ClosureTaskAction.execute(AbstractTask.java:444)
>>>         at
>>>
>>> org.gradle.api.internal.AbstractTask$ClosureTaskAction.execute(AbstractTask.java:432)
>>>         at
>>>
>>> org.gradle.api.internal.tasks.DefaultTaskExecuter.executeActions(DefaultTaskExecuter.java:58)
>>> ---
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>     http://xircles.codehaus.org/manage_email
>>
>>
>
> --
> Steve Ebersole <[email protected]>
> http://hibernate.org
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to