-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Source code of org.hibernate.hql.antlr.* ?
PostPosted: Mon May 11, 2009 12:32 pm 
Regular
Regular

Joined: Thu Apr 14, 2005 10:39 am
Posts: 115
Hi, I tried to compile hibernate, but in the distribution the code of org.hibernate.hql.antlr.* is missing.

Even \hibernate-distribution-3.3.1.GA\project\core\src\main\antlr contains some fragments of code, these aren't valid java-classes.

So where can I found the source-code?

Haven't found anything on google.

Thanks.

Greetings michael


Top
 Profile  
 
 Post subject: Re: Source code of org.hibernate.hql.antlr.* ?
PostPosted: Tue May 12, 2009 5:31 am 
Newbie

Joined: Tue May 12, 2009 5:28 am
Posts: 1
That is the actual source code. The files are processed by ANTLR, ANTLR generates the .java files when you build the project.


Top
 Profile  
 
 Post subject: Re: Source code of org.hibernate.hql.antlr.* ?
PostPosted: Tue May 12, 2009 9:19 am 
Regular
Regular

Joined: Thu Apr 14, 2005 10:39 am
Posts: 115
Thanks.

I just dowloaded it, and tried to get it to work, but ..


Code:
\src\main\antlr>java -classpath ..\..\..\..\..\..\antlrworks-1.2.3.jar org.antlr
.Tool hql.g
Code:
error(100): hql.g:1:1: syntax error: antlr: hql.g:1:1: unexpected token: header
warning(149): hql.g:0:0: rewrite syntax or operator with no output option; setti
ng output=AST
error(150):  grammar file hql.g has no rules
error(100): hql.g:0:0: syntax error: assign.types: <AST>:0:0: unexpected end of
subtree
error(100): hql.g:0:0: syntax error: define: <AST>:0:0: unexpected end of subtree


Had the same problem with the GUI.

So what should I do? Manipulating the files by removing the header-tag can't be intended, or?

Haven't found an ant-File in the distribution, or may I have overlooked that? Have found a maven-file: pom.xml
Code:
<build>
        <plugins>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>antlr-maven-plugin</artifactId>
                <version>${antlrPluginVersion}</version>
                <configuration>
                    <grammars>hql.g,hql-sql.g,sql-gen.g</grammars>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>


I don't use maven, so If you can tell me, how to do that by hand.

Thanks.

Greetings Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.