-->
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.  [ 2 posts ] 
Author Message
 Post subject: Recommended change to hibernate build.xml
PostPosted: Thu Jul 07, 2005 11:35 am 
Newbie

Joined: Thu Jul 07, 2005 11:26 am
Posts: 2
problem:

classpath from antscript not being given to antlr tasks

Hibernate version: HEAD as of 7/6/2005

build error in eclipse:

[antlrtask] java.lang.NoClassDefFoundError: antlr/Tool
[antlrtask] Exception in thread "main"

current build.xml segment:

<target name="antlr" depends="init.antlr" unless="antlr.isUpToDate"
description="Generate ANTLR parsers.">
<mkdir dir="${parser.src}"/> <!-- Create the directory for the generated sources. -->
<!-- The HQL grammar -->
<antlrtask
target="${grammar.dir}/hql.g"
outputdirectory="${parser.src}"
/>
<!-- The HQL-SQL tree transform grammar -->
<antlrtask
target="${grammar.dir}/hql-sql.g"
outputdirectory="${parser.src}"
/>
<!-- The SQL rendering tree traversal -->
<antlrtask
target="${grammar.dir}/sql-gen.g"
outputdirectory="${parser.src}"
/>
<touch file="${parser.src}/.antlr_run"/>
</target>

recommeded build.xml segment (fixes problem):

<target name="antlr" depends="init.antlr" unless="antlr.isUpToDate"
description="Generate ANTLR parsers.">
<mkdir dir="${parser.src}"/> <!-- Create the directory for the generated sources. -->
<!-- The HQL grammar -->
<antlrtask
target="${grammar.dir}/hql.g"
outputdirectory="${parser.src}">
<classpath refid="lib.class.path"/>
</antlrtask>
<!-- The HQL-SQL tree transform grammar -->
<antlrtask
target="${grammar.dir}/hql-sql.g"
outputdirectory="${parser.src}">
<classpath refid="lib.class.path"/>
</antlrtask>
<!-- The SQL rendering tree traversal -->
<antlrtask
target="${grammar.dir}/sql-gen.g"
outputdirectory="${parser.src}">
<classpath refid="lib.class.path"/>
</antlrtask>
<touch file="${parser.src}/.antlr_run"/>
</target>


Top
 Profile  
 
 Post subject: Same issue with clover section of build.xml
PostPosted: Thu Jul 07, 2005 11:39 am 
Newbie

Joined: Thu Jul 07, 2005 11:26 am
Posts: 2
original build.xml segment:
<taskdef resource="clovertasks"/>

proposed build.xml segment:
<taskdef resource="clovertasks"/>
<classpath refid="lib.class.path"/>
</taskdef>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.