-->
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.  [ 5 posts ] 
Author Message
 Post subject: Using eclipse code formatter ant task (HBX-811)
PostPosted: Tue Oct 16, 2007 8:55 am 
Newbie

Joined: Tue Oct 16, 2007 8:16 am
Posts: 3
Location: Lille, france
I use HibernateTools-3.2.0.beta11 and i want to launch the new eclipse code formatter ant task with ant 1.7.0.

I have 2 questions :
in HibernateTools-3.2.0.beta11.zip i doesn't find org.eclipse.*.jar files ...

Code:
zip -vT HibernateTools-3.2.0.beta11.zip  |grep org.eclipse |wc -l
0


but in bug changelog i found for example : HibernateExt/tools/lib/org.eclipse.core.runtime_3.2.0.v20060603.jar


in second hand in my build.xml i have this :
Code:
<path id="hibtools.classpath">
  <path location="hibernate-tools.jar" />
  <path location="hibernate3.jar" />
  <path location="freemarker.jar" />
  <path location="org.eclipse.core.runtime_3.2.0.v20060603.jar"/>
  <path location="org.eclipse.equinox.common_3.2.0.v20060603.jar"/>
  <path location="org.eclipse.jdt.core_3.2.0.v_671.jar"/>
  <path location="org.eclipse.text_3.2.0.v20060605-1400.jar"/>
</path>

<taskdef name="javaformatter" classname="org.hibernate.tool.ant.JavaFormatterTask" classpathref="hibtools.classpath"/>

<javaformatter configurationfile="my_eclipse_exported_profile.xml">
    <fileset dir="a/dir/">
      <include name="**/*.java" />
    </fileset>
</javaformatter>



but at launch, i have this error :
Code:
java.lang.NoClassDefFoundError: org/eclipse/jface/text/BadLocationException


I thinks it's because they missing jar in my path. But how to find it (missing jar) ?

_________________
My jabberID : tom@jabber.tcweb.org


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 17, 2007 1:20 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
1) I don't bundle the eclipse classes since they are already part of eclipse...which you need to run the eclipse plugins anyway

2) the BadLocationException is located in org.eclipse.text*.jar so are you sure that jar actually exists as defined in your classpath ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 17, 2007 3:49 am 
Newbie

Joined: Tue Oct 16, 2007 8:16 am
Posts: 3
Location: Lille, france
max wrote:
1) I don't bundle the eclipse classes since they are already part of eclipse...which you need to run the eclipse plugins anyway


ok. I take it from hibernate tools svn, i can take it from my eclipse ?

max wrote:
2) the BadLocationException is located in org.eclipse.text*.jar so are you sure that jar actually exists as defined in your classpath ?


I have made absolut path in <path> definition and jar are here if i make "ls" i see.
I haven't install hibernate tools in my eclipse i want to launch this task without eclipse for example in a svn hook.

_________________
My jabberID : tom@jabber.tcweb.org


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 17, 2007 4:14 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
1) yes

2) that should just work - otherwise something is wrong with the classloading somehow.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 19, 2007 8:34 am 
Newbie

Joined: Tue Oct 16, 2007 8:16 am
Posts: 3
Location: Lille, france
max wrote:
that should just work

but that not work ...

max wrote:
otherwise something is wrong with the classloading somehow.

i will search in that direction

_________________
My jabberID : tom@jabber.tcweb.org


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