geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Smith (JIRA)" <>
Subject [jira] [Created] (GEODE-165) Add build support for generating antlr classes from grammar
Date Mon, 27 Jul 2015 21:25:08 GMT
Dan Smith created GEODE-165:

             Summary: Add build support for generating antlr classes from grammar
                 Key: GEODE-165
             Project: Geode
          Issue Type: Bug
          Components: build
            Reporter: Dan Smith
            Assignee: Mark Bretl

The OQL engine currently uses antlr to generate some parsing classes from 


These are the generated classes. They are currently checked into the source.

They can be generated manually by running antlr.Tool on the provided grammar.
cd gemfire-core/src/main/java/com/gemstone/gemfire/cache/query/internal/parse/
java -cp antlr.jar antlr.Tool oql.g

We should add support to the gradle build to generate these classes.

In my opinion we should also remove the checked in classes. With gradle we can configure things
so that the gradle eclipse target will generate these classes and make them available to the
IDE as well. Look at gemfire-core/build.gradle for how we do this with the version properties

sourceSets {
  main {
    output.dir(generatedResources, builtBy: 'createVersionPropertiesFile')

This message was sent by Atlassian JIRA

View raw message