-->
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.  [ 1 post ] 
Author Message
 Post subject: Need support to apply and compile patch on 3.1.3
PostPosted: Tue Aug 18, 2015 8:19 am 
Newbie

Joined: Tue Aug 18, 2015 4:36 am
Posts: 1
Hi All,
I am new to Hibernate development but I need to test a patch on the 3.1.3 release.
https://hibernate.atlassian.net/browse/HHH-2470
I downloaded the source code but when I run ant I get the following exception.

Code:
_user@machine:~/local-workspace/websphere/hibernate-3.1$ ant -v
Apache Ant(TM) version 1.9.3 compiled on April 8 2014
Trying the default build file: build.xml
Buildfile: /home/_user/local-workspace/websphere/hibernate-3.1/build.xml
Detected Java version: 1.7 in: /usr/lib/jvm/jdk1.7.0_55/jre
Detected OS: Linux
parsing buildfile /home/_user/local-workspace/websphere/hibernate-3.1/build.xml with URI = file:/home/_user/local-workspace/websphere/hibernate-3.1/build.xml
Project base dir set to: /home/_user/local-workspace/websphere/hibernate-3.1
parsing buildfile jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml with URI = jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml from a zip file
[property] Loading /home/_user/local-workspace/websphere/hibernate-3.1/build.properties
[property] Unable to find property file: /home/_user/local-workspace/websphere/hibernate-3.1/build.properties
[property] Loading /home/_user/.ant.properties
[property] Unable to find property file: /home/_user/.ant.properties
dropping /usr/share/ant/lib/clover.jar from path as it doesn't exist
dropping /usr/share/ant/lib/clover.jar from path as it doesn't exist
dropping /usr/share/ant/lib/clover.jar from path as it doesn't exist
dropping /usr/share/ant/lib/clover.jar from path as it doesn't exist
  [taskdef] Could not load definitions from resource checkstyletask.properties. It could not be found.
  [taskdef] Could not load definitions from resource clovertasks. It could not be found.
Build sequence for target(s) `jar' is [splash, init, init.antlr, antlr, compile, jar]
Complete build sequence is [splash, init, init.antlr, antlr, compile, jar, cleantestdb, compiletest, perf, javadoc, checkstyle, versioncheck, copysource, copylib, extras, antlr.bnf, refdoc, dist, instrument, junitinstrument, cleanantlr, with.clover, cloverreport.html, antlr.regen, patch, junitsingle, replace, cleanimps, junitinstrumentreport, clean, junit, junitreport, cloverreport, info, eg, ]

splash:
   [splash] Creating new SplashScreen

init:
     [echo] Build Hibernate-3.1.3 (2015-08-18 02:09:52)
    [mkdir] Skipping /home/_user/local-workspace/websphere/hibernate-3.1/build/classes because it already exists.
     [copy] org/hibernate/hibernate-configuration-3.0.dtd omitted as /home/_user/local-workspace/websphere/hibernate-3.1/build/classes/org/hibernate/hibernate-configuration-3.0.dtd is up to date.
     [copy] org/hibernate/hibernate-mapping-3.0.dtd omitted as /home/_user/local-workspace/websphere/hibernate-3.1/build/classes/org/hibernate/hibernate-mapping-3.0.dtd is up to date.
     [copy] No sources found.
     [echo] JDK version: 1.7

init.antlr:
[uptodate] The targetfile "/home/_user/local-workspace/websphere/hibernate-3.1/build/gensrc/org/hibernate/hql/antlr/.antlr_run" does not exist.

antlr:
    [mkdir] Skipping /home/_user/local-workspace/websphere/hibernate-3.1/build/gensrc/org/hibernate/hql/antlr because it already exists.
[antlrtask] Couldn't find antlr/ANTLRGrammarParseBehavior.class
[antlrtask] Setting target to: /home/_user/local-workspace/websphere/hibernate-3.1/grammar/hql.g
[antlrtask] Setting output directory to: /home/_user/local-workspace/websphere/hibernate-3.1/build/gensrc/org/hibernate/hql/antlr
[antlrtask] Compiling /home/_user/local-workspace/websphere/hibernate-3.1/grammar/hql.g as it is newer than /home/_user/local-workspace/websphere/hibernate-3.1/build/gensrc/org/hibernate/hql/antlr/HqlBaseParser.java
[antlrtask] Executing '/usr/lib/jvm/jdk1.7.0_55/jre/bin/java' with arguments:
[antlrtask] 'antlr.Tool'
[antlrtask] '-o'
[antlrtask] '/home/_user/local-workspace/websphere/hibernate-3.1/build/gensrc/org/hibernate/hql/antlr'
[antlrtask] '/home/_user/local-workspace/websphere/hibernate-3.1/grammar/hql.g'
[antlrtask]
[antlrtask] The ' characters around the executable and arguments are
[antlrtask] not part of the command.
[antlrtask] Error: Could not find or load main class antlr.Tool

BUILD FAILED
/home/_user/local-workspace/websphere/hibernate-3.1/build.xml:180: ANTLR returned: 1
   at org.apache.tools.ant.taskdefs.optional.ANTLR.execute(ANTLR.java:303)
   at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
   at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:606)
   at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
   at org.apache.tools.ant.Task.perform(Task.java:348)
   at org.apache.tools.ant.Target.execute(Target.java:435)
   at org.apache.tools.ant.Target.performTasks(Target.java:456)
   at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
   at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
   at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
   at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
   at org.apache.tools.ant.Main.runBuild(Main.java:851)
   at org.apache.tools.ant.Main.startAnt(Main.java:235)
   at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
   at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Total time: 0 seconds


Code:
_user@machine:~/local-workspace/websphere/hibernate-3.1$ ant -version
Apache Ant(TM) version 1.9.3 compiled on April 8 2014


Code:
hibernate-3.1$ ls -l
total 2156
drwxrwxr-x 4 _user _user    4096 aug 12 16:34 build
-rw-r--r-- 1 _user _user     100 mrt 20  2006 build.bat
-rw-r--r-- 1 _user _user   28680 mrt 20  2006 build.xml
-rw-r--r-- 1 _user _user  119064 mrt 20  2006 changelog.txt
drwxr-xr-x 5 _user _user    4096 mrt 20  2006 doc
drwxr-xr-x 3 _user _user    4096 mrt 20  2006 eg
drwxr-xr-x 2 _user _user    4096 mrt 20  2006 etc
drwxr-xr-x 2 _user _user    4096 mrt 20  2006 grammar
-rw-r--r-- 1 _user _user 1971632 mrt 20  2006 hibernate3.jar
-rw-r--r-- 1 _user _user    1456 mrt 20  2006 hibernate_logo.gif
-rw-r--r-- 1 _user _user   26932 mrt 20  2006 lgpl.txt
drwxr-xr-x 2 _user _user    4096 aug 14 16:28 lib
drwxrwxr-x 3 _user _user    4096 aug 12 17:09 nbproject
-rw-r--r-- 1 _user _user    1277 mrt 20  2006 readme.txt
drwxr-xr-x 3 _user _user    4096 mrt 20  2006 src
drwxr-xr-x 3 _user _user    4096 mrt 20  2006 test


Any help?
Thanks


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

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.